packages2Install: Find all R packages to install

Description Usage Arguments Details Examples

View source: R/packages2install.R

Description

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", ...)

Usage

1
packages2Install(path = getwd(), file = NA, quote = "\"")

Arguments

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: " )

Details

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

Examples

1

juliendiot42/rjdiotperso documentation built on Jan. 8, 2020, 3:38 p.m.