package installation

Install the bioconductor packages.

# install the required packages
source("http://bioconductor.org/biocLite.R")
biocLite(c("Biostrings", "ShortRead", "ggplot2","Rsamtools","org.Hs.eg.db", "TxDb.Hsapiens.UCSC.hg19.knownGene"))

Download and install another packages.

# install course package
download.file(url=
    "http://www.bioconductor.org/help/course-materials/2014/SeattleFeb2014/BiocIntro_0.0.4.tar.gz",
              destfile="bioc.tar.gz")
install.packages("bioc.tar.gz", repos = NULL, type = "source")

Run the following R commands and try your best to understand what you are doing.