This is the current version of the SuperLearner R package (version 2.*).
To install the SuperLearner package on your computer you have two options.
If you have devtools installed you can install the package using the following script.
require(devtools)
install_github("ecpolley/SuperLearner")
These steps assume your system is set up to build and install R packages from source.
- Download the entire repository using the Downloads link in the upper right.
- Unzip the downloaded file. [Of course, if you have git, you could replace steps 1 and 2 with:
git clone git://github.com/ecpolley/SuperLearner.git
] - Run
R CMD build /path/to/folder
- You should now have a file called SuperLearner_2.0-15.tar.gz
- Run
R CMD INSTALL SuperLearner_2.0-15.tar.gz
- Alternative to step 5, in R use the command
install.packages('SuperLearner_2.0-15.tar.gz', repos = NULL, type = 'source')
assuming you are in the correct directory for the *.tar.gz file (or add full path to the command)
The package should now exist in your R library and can be loaded with the command library(SuperLearner)
. The SuperLearner
package has 2 required packages that need to be installed before SuperLearner
. The required packages are nnls
and quantreg
and they can be installed from CRAN. In R, use the command install.packages(c("nnls", "quantreg"))
.