# NOT RUN {
if (interactive()) {
# 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
# }
# NOT RUN {
install.packages("fortunes")
# }
# NOT RUN {
## Loading Packages
library("fortunes")
## Reading the Package Manual and Vignette
library(help=fortunes)
# }
# NOT RUN {
vignette("fortunes")
# }
# NOT RUN {
## Updating Packages
# }
# NOT RUN {
update.packages()
# }
# NOT RUN {
## Unloading Packages
search()
detach(package:fortunes, unload=TRUE)
## Forging Ahead with R-Forge
# }
# NOT RUN {
install.packages("data.table", repos="https://R-Forge.R-project.org")
# }
# NOT RUN {
## Conducting Installations from BioConductor
# }
# NOT RUN {
source("https://bioconductor.org/biocLite.R")
# }
# NOT RUN {
## Reading the R Manual
}
# }
Run the code above in your browser using DataLab