Skip to content

Commit 85c4be7

Browse files
committed
Honor the rstudio argument
1 parent 64f95a5 commit 85c4be7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

R/create.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ create_project <- function(
9393
open = rlang::is_interactive()
9494
) {
9595
path <- user_path_prep(path)
96+
check_path_is_directory(path_dir(path))
97+
9698
name <- path_file(path_abs(path))
9799
challenge_nested_project(path_dir(path), name)
98100
challenge_home_directory(path)
@@ -106,7 +108,7 @@ create_project <- function(
106108
use_rstudio()
107109
} else {
108110
ui_bullets(c(
109-
"v" = "Writing a sentinel file {.path {pth('.here')}}.",
111+
"v" = "Writing a sentinel file {.path .here'}.",
110112
"_" = "Build robust paths within your project via {.fun here::here}.",
111113
"i" = "Learn more at {.url https://here.r-lib.org}."
112114
))
@@ -145,6 +147,10 @@ create_quarto_project <- function(
145147
create_directory(path)
146148
local_project(path, force = TRUE)
147149

150+
if (rstudio) {
151+
use_rstudio()
152+
}
153+
148154
res <- quarto::quarto_create_project(
149155
name = name,
150156
dir = parent_dir,

0 commit comments

Comments
 (0)