To print a listing of all examples of a chapter, use ch20(). To run all the examples of ch20(), use example(ch20).

ch20()

See also

toc

Other Chapters: ch01, ch02, ch03, ch04, ch05, ch06, ch07, ch08, ch09, ch10, ch11, ch12, ch13, ch14, ch15, ch16, ch17, ch18, ch19

Examples

# 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
# NOT RUN { install.packages("fortunes") # }
## Loading Packages library("fortunes") ## Reading the Package Manual and Vignette library(help=fortunes)
# NOT RUN { vignette("fortunes") # }
## Updating Packages
# NOT RUN { update.packages() # }
## Unloading Packages search()
#> [1] ".GlobalEnv" "package:fortunes" "package:ggplot2" #> [4] "package:reshape2" "package:lattice" "package:sos" #> [7] "package:brew" "package:stringr" "package:rfordummies" #> [10] "package:testthat" "devtools_shims" "package:stats" #> [13] "package:graphics" "package:grDevices" "package:utils" #> [16] "package:datasets" "package:methods" "Autoloads" #> [19] "package:base"
detach(package:fortunes, unload=TRUE) ## Forging Ahead with R-Forge
# NOT RUN { install.packages("data.table", repos="http://R-Forge.R-project.org") # }
## Conducting Installations from BioConductor
# NOT RUN { source("http://bioconductor.org/biocLite.R") # }
## Reading the R Manual