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