File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,4 +128,3 @@ importFrom(utils,modifyList)
128128importFrom(utils,packageDescription)
129129importFrom(utils,packageVersion)
130130importFrom(utils,remove.packages)
131- importFrom(withr,defer)
Original file line number Diff line number Diff line change 55# ' @importFrom usethis use_test
66NULL
77
8- # ' @importFrom withr defer
9- local_proj <- withr :: local_(function (path = " ." , force = FALSE ) utils :: capture.output(usethis :: proj_set(path = path , force = force )))
10-
118usethis_use_testthat <- function (pkg ) {
12- utils :: capture.output({
13- local_proj(pkg $ path )
14- usethis :: use_testthat()
15- })
9+ usethis :: local_project(pkg $ path , quiet = TRUE )
10+ usethis :: use_testthat()
1611}
1712
1813usethis_use_directory <- function (pkg , path , ignore = FALSE ) {
19- utils :: capture.output({
20- local_proj(pkg $ path )
21- usethis :: use_directory(path , ignore )
22- })
14+ usethis :: local_project(pkg $ path , quiet = TRUE )
15+ usethis :: use_directory(path , ignore )
2316}
2417
2518usethis_use_git_ignore <- function (pkg , ignores , ignore = FALSE ) {
26- utils :: capture.output({
27- local_proj(pkg $ path )
28- usethis :: use_git_ignore(ignores )
29- })
19+ usethis :: local_project(pkg $ path , quiet = TRUE )
20+ usethis :: use_git_ignore(ignores )
3021}
You can’t perform that action at this time.
0 commit comments