Sunday, 2 August 2015

R: Install packages

You can install any package in R, by simply typing following command in R console.

install.packages(c("package1", " package1", … “packageN”))

To install ggplot2 package, open R console and type following command.

> install.packages("ggplot2")

It prompts to select a CRAN mirror and press OK. When you installing a package, R automatically installs all the packages, that this package depends on.

Note:
CRAN is a repository of packages for R, and it is mirrored on servers around the globe. It’s the default repository system used by R.


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment