install_version

0th

Percentile

Install specified version of a CRAN package.

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 has_devel.

Usage
install_version(package, version = NULL, repos = getOption("repos"),
  type = getOption("pkgType"), ..., quiet = FALSE)
Arguments
package

package name

version

If the specified version is NULL or the same as the most recent version of the package, this function simply calls install. Otherwise, it looks at the list of archived source tarballs and tries to install an older version instead.

repos

character vector, the base URL(s) of the repositories to use, e.g., the URL of a CRAN mirror such as "https://cloud.r-project.org". For more details on supported URL schemes see url.

Can be NULL to install from local files, directories or URLs: this will be inferred by extension from pkgs if of length one.

type

character, indicating the type of package to download and install. Will be "source" except on Windows and some macOS builds: see the section on ‘Binary packages’ for those.

...

Other arguments passed on to install.

quiet

logical: if true, reduce the amount of output.

See Also

Other package installation: install_bioc, install_bitbucket, install_cran, install_github, install_git, install_svn, install_url, install, uninstall

Aliases
  • install_version
Documentation reproduced from package devtools, version 1.13.3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.