View source: R/package_tools.R
depends | R Documentation |
Function for loading and, if necessary, installing packages
depends(packages)
packages |
Character vector of packages to install from CRAN or GitHub |
The function looks up required packages and loads the ones already installed, while installing and loading for packages not installed. For CRAN packages the package name is required as argument, for GitHub username/repo are required as argument.
Loads and, if necessary, first installs packages
## Not run:
depends("manypkgs")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.