download_version {remotes} | R Documentation |
Download a specified version of a CRAN package
Description
It downloads the package to a temporary file, and returns the name of the file.
Usage
download_version(
package,
version = NULL,
repos = getOption("repos"),
type = getOption("pkgType"),
...
)
Arguments
package |
Name of the package to install. |
version |
Version of the package to install. Can either be a string giving the exact version required, or a specification in the same format as the parenthesized expressions used in package dependencies. One of the following formats:
|
repos |
character vector, the base URL(s) of the repositories
to use, e.g., the URL of a CRAN mirror such as
Can be |
type |
character, indicating the type of package to download and
install. Will be |
... |
Other arguments passed on to |
Value
Name of the downloaded file.