Skip to content

Commit eb82346

Browse files
committed
More actionable message re: nested projects
1 parent fb6e390 commit eb82346

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/create.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,10 @@ check_not_nested <- function(path, name) {
275275

276276
ui_line(
277277
"New project {ui_value(name)} is nested inside an existing project \\
278-
{ui_path(path)}, which is rarely a good idea."
278+
{ui_path(path)}, which is rarely a good idea.
279+
If this is unexpected, the here package has a function, \\
280+
{ui_code('here::dr_here()')} that reveals why {ui_path(path)} \\
281+
is regarded as a project."
279282
)
280283
if (ui_nope("Do you want to create anyway?")) {
281284
ui_stop("Aborting project creation.")

0 commit comments

Comments
 (0)