if (FALSE) {
## A locally installed package
#' getDependencies("MASS", installed = TRUE, available = FALSE)
## A package on CRAN
getDependencies("gregmisc", installed = FALSE, available = TRUE)
## Show base and recommended dependencies
getDependencies("MASS", available = FALSE, base = TRUE, recommended = TRUE)
## Download the set of packages necessary to support a local package
deps <- getDependencies("MyLocalPackage", available = FALSE)
download.packages(deps, destdir = "./R_Packages")
}
Run the code above in your browser using DataLab