Currently VarPro is an R-package available on our GitHub repository and CRAN.

To create the R package using the GitHub repository, you will need an installation of R (> v3.0) that is capable of compiling source code packages containing C-code. This means that the approprate C-code compilers need to be in place and accessible by the R packaging and installation engine.

varPro typically requires the latest development version of the randomForestSRC package available on our GitHub repository. However, it should also work with the latest package available on R.

Like many other R packages, the simplest way to obtain varPro is to install it directly from CRAN or Github via typing the following command in R console:

# install.packages("devtools") 
# ensure to obtain the newest version of ‘randomForestSRC’
# devtools::install_github("kogalur/randomForestSRC")
devtools::install_github("kogalur/varPro")

# Available at CRAN 
install.packages("varPro")


Cite this vignette as
M. Lu, A. Shear, U. B. Kogalur, and H. Ishwaran. 2025. “varPro: installing varPro vignette.” http://www.varprotools.org/articles/installation.html.

@misc{LuInstall,
    author = "Min Lu and Aster Shear and Udaya B. Kogalur and Hemant Ishwaran",
    title = {{varPro}: installing {varPro} vignette},
    year = {2025},
    url = {http://www.varprotools.org/articles/installation.html},
    howpublished = "\url{http://www.varprotools.org/articles/installation.html}",
    note = "[accessed date]"
}