Installing Packages and Libraries

The base package does not contain some of the libraries referred to in this book, but downloading these is very simple. Run the R program, then from the command line use the install.packages function to download the libraries you want. You will be asked to highlight the mirror nearest to you for fast downloading (e.g. London), then everything else is automatic. The packages used in this book are

install.packages("akima")
install.packages("chron")
install.packages("Ime4")
install.packages("mcmc")
install.packages("odesolve")
install.packages("spdep")
install.packages("spatstat")
install.packages("tree")

If you want other libraries, then go to CRAN and browse the list called ‘Packages’ to select the ones you want to investigate.

Get The R Book 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.