Skip to content

Commit 6c2414c

Browse files
committed
Remove unnecessary dir.create from widget scaffold
1 parent 0c2100b commit 6c2414c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

R/scaffold_widget.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ scaffoldReactWidget <- function(name, npmPkgs = NULL, edit = interactive()){
2222
call. = F
2323
)
2424
}
25-
if (!file.exists('inst')){
26-
dir.create('inst')
27-
}
25+
2826
package <- read.dcf('DESCRIPTION')[[1,"Package"]]
2927
addWidgetConstructor(name, package, edit)
3028
addWidgetYAML(name, edit)

0 commit comments

Comments
 (0)