install.packages.zip: Downloads and installs a ZIP R package Binary (for Windows)...

Description Usage Arguments Details Value See Also Examples

View source: R/install.R

Description

Gets a character with a link to an R package Binary, downloads it, and installs it.

Usage

1

Arguments

zip_URL

a link to a ZIP R package Binary.

Details

To my knowledge, there is currently three ways to install packages on R: 1. To get the package through a repository (such as CRAN or RForge) through install.packages. 2. To manually download a ZIP file locally to the computer, and use install.packages on it. 3. To get the package from github, by using devtools (but this will require you to first install RTools, and not everyone wishes to do it for just some package). This function aims to combine option 1 and 2, by automatically downloading the ZIP file locally and then running install.packages on it. After being downloaded and installed, the binary is erased from the computer.

Value

Invisible NULL

See Also

install.packages, installPackages

Examples

1
2
3
4
## Not run: 
install.packages.zip("https://cran.r-project.org/bin/windows/contrib/r-release/devtools_1.1.zip")

## End(Not run)

installr documentation built on Oct. 7, 2018, 1:08 a.m.