Chapter 20 – Ten Tips on Working with Packages

 
# Chapter 20 - Ten Tips on Working with Packages
 
## Poking Around the Nooks and Crannies of CRAN
 
options("repos" = c(CRAN = "http://cran.ma.imperial.ac.uk/"))
 
## Finding Interesting Packages
 
## Installing Packages
 
install.packages("fortunes")
 
## Loading Packages
 
library("fortunes")
 
## Reading the Package Manual and Vignette
 
library(help=fortunes)
vignette("fortunes")
 
## Updating Packages
 
update.packages()
 
## Unloading Packages
 
search()
detach(package:fortunes, unload=TRUE)
 
## Forging Ahead with R-Forge
 
install.packages("data.table", repos="http://R-Forge.R-project.org")
 
## Conducting Installations from BioConductor
 
source("http://bioconductor.org/biocLite.R")
 
## Reading the R Manual

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Get the book.

Recent Comments
Archives
Categories