

> install. Type the following command in R console to install it to /my/own/R-packages/ directly from CRAN: $ R CMD INSTALL mypkg -l /my/own/R-packages/ Method 2: Install from CRAN directly It started as a merge of Ron's earlier package pls.pcr' and an unpublished package by Bjrn-Helge. The package is written by Ron Wehrens, Kristian Hovde Liland and Bjrn-Helge Mevik.


Install a new package to your computer Method 1: Install from sourceĭownload the add-on R package, say mypkg, and type the following command in Unix console to install it to /my/own/R-packages/: pls is an R package implementing partial least squares regression (PLSR) and principal component regression (PCR). More details can be found by typing ?INSTALL in R console. R packages are primarily distributed as source packages, but binary packages (a packaging up of the installed package). The following is a brief instruction of installing R packages. R is a free software environment for statistical computing and graphics, available from. I occacionally publish R add-on packages for others to implement and test the statistical methodoglogies I discuss in my papers. How to Install an R Package How to Install an R Package? Longhai Li, Department of Mathematics and Statistics, University of Saskatchewan
