powered by
Install missing package from DESCRIPTION
install_from_description( path = "DESCRIPTION", field = c("Depends", "Imports", "Suggests"), ... )
Used for side effect. Installs R packages from DESCRIPTION file if missing.
path to the DESCRIPTION file
DESCRIPTION fields to parse, "Depends", "Imports", "Suggests" by default
Arguments to be passed to utils::install.packages()
utils::install.packages()
if (FALSE) { dummypackage <- system.file("dummypackage", package = "attachment") # browseURL(dummypackage) install_from_description(path = file.path(dummypackage,"DESCRIPTION")) }
Run the code above in your browser using DataLab