-
Notifications
You must be signed in to change notification settings - Fork 764
Closed
Milestone
Description
When I run build_vignettes() in my package, the function tries to install some packages. But all the mentioned packages I already have, in the same path, but not in the most recent version.
> build_vignettes()
Installing 3 packages: evaluate, formatR, knitr
Installing packages into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
Warning in utils::install.packages(pkgs, repos = repos, type = type, ..., :
'lib = "/usr/local/lib/R/site-library"' is not writable
Would you like to use a personal library instead? (y/n)
> ip <- installed.packages()
> ip[rownames(ip) %in% c("evaluate", "formatR", "knitr"), 1:2]
Package LibPath
evaluate "evaluate" "/usr/lib/R/site-library"
formatR "formatR" "/usr/lib/R/site-library"
knitr "knitr" "/usr/lib/R/site-library"The argument dependencies = "VignetteBuilder argument is passed down, build_vignette() > install_deps() > dev_package_deps(), the last check for updates.
> pkg <- dev_package_deps(pkg, repos = repos, dependencies = dependencies, type = type)
Needs update -----------------------------
package installed available
evaluate 0.8 0.8.3
formatR 1.2.1 1.3
knitr 1.12 1.12.3
New versions are always installed. But, why not add a argument in build_vignettes() to update or not packages, upgrade = FALSE, that is passed to update() inside install_deps()? With this, only non installed packages will be installed, but not those already installed.
Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels