install | R Documentation |
Uses R CMD INSTALL
to install the package. Will also try to install
dependencies of the package from CRAN, if they're not already installed.
install(
pkg = ".",
reload = TRUE,
quick = FALSE,
local = TRUE,
args = getOption("devtools.install.args"),
quiet = FALSE,
dependencies = NA,
build_vignettes = !quick,
keep_source = getOption("keep.source.pkgs")
)
pkg |
package description, can be path or package name. |
reload |
if |
quick |
if |
local |
if |
args |
An optional character vector of additional command line
arguments to be passed to |
quiet |
if |
dependencies |
|
build_vignettes |
if |
keep_source |
If |
By default, installation takes place using the current package directory.
If you have compiled code, this means that artefacts of compilation will be
created in the src/
directory. If you want to avoid this, you can
use local = FALSE
to first build a package bundle and then install
it from a temporary directory. This is slower, but keeps the source
directory pristine.
If the package is loaded, it will be reloaded after installation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.