| install | R Documentation |
Uses R CMD INSTALL to install the package, after installing needed
dependencies with pak::local_install_deps().
To install to a non-default library, use withr::with_libpaths().
install(
pkg = ".",
reload = TRUE,
quick = FALSE,
build = !quick,
args = getOption("devtools.install.args"),
quiet = FALSE,
dependencies = NA,
upgrade = FALSE,
build_vignettes = FALSE,
keep_source = getOption("keep.source.pkgs") || !build,
force = deprecated()
)
pkg |
The package to use, can be a file path to the package or a
package object. See |
reload |
if |
quick |
if |
build |
If One downside of installing from a built tarball is that the package is
installed from a temporary location. This means that any source references
will point to dangling locations and debuggers won't have direct access to
the source for step-debugging. For development purposes, If |
args |
An optional character vector of additional command line
arguments to be passed to |
quiet |
If |
dependencies |
What kinds of dependencies to install. Most commonly one of the following values:
|
upgrade |
When When |
build_vignettes |
if |
keep_source |
If |
force |
with_debug() to install packages with debugging flags set.
Other package installation:
uninstall()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.