The The R Primer logo Primer

Install an R package

You want to install an R package

Solution: Use the install.packages function to install R packages directly from CRAN or from a local file.

> install.packages("kulife") # Install the kulife package directly from CRAN

See rule 5.3 in The R Primer for more information

Back to tips.