File tree 2 files changed +6
-16
lines changed
2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -128,4 +128,3 @@ importFrom(utils,modifyList)
128
128
importFrom(utils,packageDescription)
129
129
importFrom(utils,packageVersion)
130
130
importFrom(utils,remove.packages)
131
- importFrom(withr,defer)
Original file line number Diff line number Diff line change 5
5
# ' @importFrom usethis use_test
6
6
NULL
7
7
8
- # ' @importFrom withr defer
9
- local_proj <- withr :: local_(function (path = " ." , force = FALSE ) utils :: capture.output(usethis :: proj_set(path = path , force = force )))
10
-
11
8
usethis_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()
16
11
}
17
12
18
13
usethis_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 )
23
16
}
24
17
25
18
usethis_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 )
30
21
}
You can’t perform that action at this time.
0 commit comments