Skip to content

Commit

Permalink
call proj_set conditionally when making vignettes.
Browse files Browse the repository at this point in the history
Keeps things quiet on the console.
#50
  • Loading branch information
gfinak committed Sep 7, 2018
1 parent 20c6a14 commit 136d87a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/processData.R
Expand Up @@ -527,7 +527,8 @@ DataPackageR <- function(arg = NULL, deps = TRUE) {

.ppfiles_mkvignettes <- function(dir = NULL) {
cat("\n")
usethis::proj_set(dir)
if (proj_get() != dir)
usethis::proj_set(dir)
pkg <- desc::desc(dir)
pkg$set_dep("knitr", "Suggests")
pkg$set_dep("rmarkdown", "Suggests")
Expand Down

0 comments on commit 136d87a

Please sign in to comment.