Skip to content

Commit 972bbe3

Browse files
committed
Don't show warnings in scaffold when dir.create
1 parent 523a59b commit 972bbe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/scaffold_utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ toDepJSON <- function(npmPkgs) {
3737
# Wraps renderTemplate for convenient use from scaffold functions.
3838
renderFile <- function(outputFile, templateFile, description = '', substitutions = list()) {
3939
if (!file.exists(outputFile)) {
40-
dir.create(dirname(outputFile), recursive = TRUE)
40+
dir.create(dirname(outputFile), recursive = TRUE, showWarnings = FALSE)
4141
cat(renderTemplate(slurp(templateFile), substitutions), file = outputFile)
4242
message("Created ", description, " ", outputFile)
4343
} else {

0 commit comments

Comments
 (0)