Gets a character with a link to an R package Binary, downloads it, and installs it.
a link to a ZIP R package Binary.
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.