inst/scripts/1-orig/ch20.R

# Chapter 20 - Ten Tips on Working with Packages

## Poking Around the Nooks and Crannies of CRAN

options("repos" = c(CRAN = "https://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="https://R-Forge.R-project.org")

## Conducting Installations from BioConductor

source("https://bioconductor.org/biocLite.R")

## Reading the R Manual

Try the rfordummies package in your browser

Any scripts or data that you put into this service are public.

rfordummies documentation built on March 18, 2022, 6:04 p.m.