If you are installing an package that contains compiled code, you will
need to have an R development environment installed. You can check
if you do by running
devtools::has_devel (you need the
devtools package for this).
install_version(package, version = NULL, dependencies = NA, upgrade = c("ask", "always", "never"), force = FALSE, quiet = FALSE, build = FALSE, build_opts = c("--no-resave-data", "--no-manual", "--no-build-vignettes"), repos = getOption("repos"), type = getOption("pkgType"), ...)
If the specified version is NULL or the same as the most
recent version of the package, this function simply calls
logical indicating whether to also install
uninstalled packages which these packages depend on/link
to/import/suggest (and so on recursively). Not used if
Only supported if
In all of these,
One of "ask", "always" or "never". "ask" prompts the user for
which out of date packages to upgrade. For non-interactive sessions "ask" is
equivalent to "always".
Force installation, even if the remote state has not changed since the previous install.
logical: if true, reduce the amount of output.
Options to pass to
character vector, the base URL(s) of the repositories
to use, e.g., the URL of a CRAN mirror such as
character, indicating the type of package to download and
install. Will be
Other arguments passed on to