Description Usage Arguments Examples
This function takes a package and returns a list of its dependencies. Good for downloading source files of packages to install on a R server where internet access is blocked.
1 | getPackages(packs)
|
packs |
a quoted package name or list of package names |
1 2 3 4 5 6 7 8 9 | ## Not run:
# use this to get specifically named packages and their dependencies:
packages <- getPackages('pbapply')
# use this to get all packages installed on local machine and their dependencies:
# packages <- getPackages(row.names(installed.packages()))
# then download the packages:
download.packages(packages, destdir='.',type='source')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.