Downloading a Package from the Web

The package you want may not be in your R installation. One of the big advantages of open source software is that people love to share. People all over the world have written their own special-purpose R packages, placing them in the CRAN repository and elsewhere.

Note

User contributions to CRAN go through a vetting process and are generally of high quality. They are, however, not tested as thoroughly as R itself.

Installing Packages Automatically

One way to install a package is to use the install_packages() function. For example, suppose you wish to use the mvtnorm package, which computes multivariate normal cumulative distribution functions and other quantities. First, choose a directory in which you wish to install ...

Get The Art of R Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.