Description Usage Arguments Details Examples
View source: R/packages2install.R
This function will check all ".R" file in a given repository and find all
refferences to loaded packages through library(pkg)
or
require(pkg)
. The function will show a R line to install these
packages: install.packages(c("pkg1", "pkg2", ...)
1 | packages2Install(path = getwd(), file = NA, quote = "\"")
|
path |
path of the R project (current working directory by default) |
file |
(optional) file name of the output file |
quote |
(optional) quote type, either " or ' (default: " ) |
NOTE : This work for packages hosted on CRAN, not on Bioconductor. More
generally it do not work for package than can't be installed by :
install.packages("pkg")
do not work
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.