Monday, January 25, 2016

R packages installation on Debian Jessie


This morning I wanted to install packagedocs to produce web documentation for a package. Packagedocs is based on staticdocs. They required an upgrade to R >= 3.2.0.

Installing R 3.2.3

Based on Debian packages for R software, I added this line to /etc/apt/sources.list
deb http://cran.univ-paris1.fr/bin/linux/debian jessie-cran3/
Reloaded package information in the synaptic package manager, marked all upgrades and installed the package.

Installing packages

Some packages can be installed from the CRAN repository
install.packages("Rcpp")
install.packages("ggplot2")
install.packages(c("dplyr","tidyr"))
install.packages("ggplot2")
install.packages(c("dplyr","tidyr")
Other packages are not available on CRAN. They can be installed from github:
devtools::install_github("hadley/staticdocs")
devtools::install_github("hafen/packagedocs")

See also my older post on R packages and RStudio install on Debian Wheezy.

No comments: