View source: R/install_from_description.R
install_from_description | R Documentation |
Install missing package from DESCRIPTION
install_from_description(
path = "DESCRIPTION",
field = c("Depends", "Imports", "Suggests"),
...
)
path |
path to the DESCRIPTION file |
field |
DESCRIPTION fields to parse, "Depends", "Imports", "Suggests" by default |
... |
Arguments to be passed to |
Used for side effect. Installs R packages from DESCRIPTION file if missing.
## Not run:
# This will install packages on your system
dummypackage <- system.file("dummypackage", package = "attachment")
# browseURL(dummypackage)
install_from_description(path = file.path(dummypackage, "DESCRIPTION"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.