New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple feature request: add option "clean" (and "upgrade"?) to build_vignettes #1770

courtiol opened this Issue Apr 19, 2018 · 2 comments


None yet
2 participants

courtiol commented Apr 19, 2018

Hi all,
build_vignettes() is great but for some utilisation, it is a little frustrating to see the knitr cash removed after building vignettes that take hours to be processed. It would be great and easy to offer this option.


build_vignettes <- function(pkg = ".",
                            dependencies = "VignetteBuilder",
                            clean = FALSE,  ## new
                            quiet = TRUE
                            ) {
  pkg <- as.package(pkg)
  vigns <- tools::pkgVignettes(dir = pkg$path)
  if (length(vigns$docs) == 0) return()

  install_deps(pkg, dependencies, upgrade = FALSE)

  message("Building ", pkg$package, " vignettes")
  tools::buildVignettes(dir = pkg$path, clean = clean, tangle = TRUE, quiet = quiet)  ## clean added


and since we are at it a boolean argument "upgrade" to pass to the function install_deps() could be nice.

I implement that with the documentation and send a pull request, but I wanted to probe the terrain first.



This comment has been minimized.


jimhester commented Apr 19, 2018

I don't think we need to expose upgrade, but sure we can add clean.


This comment has been minimized.

courtiol commented Apr 19, 2018

That would be great, thank you!

@jimhester jimhester added the feature label May 4, 2018

@jimhester jimhester added this to the 2.0.0 milestone Jul 18, 2018

@jimhester jimhester closed this in eb67462 Jul 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment