## The following are the packages required for today's GSEA lab ## presented by Robert Gentleman. Please verify that you have them ## installed by loading them using the library() function in R. As ## long as no errors are reported, you have what you will need to ## work on the lab. ## You can type in the commands below. If you are connected to the ## internet, you can save some typing by using source() (see below). ## If you have a network connection, copy/paste the following into an ## R session: # source("http://bioconductor.fhcrc.org/workshops/2006/BioC2006/labs/rgentleman/rg-lab-reqs.R") ## If you are _not_ connected to the net, type in the following. if ((R.version$major == "2") && (as.integer(R.version$minor) >= 3:3)) { cat("Detected up-to-date R version\n") } else { stop("Sorry, your version of R is out of date. Please upgrade to R 2.3.1\n") } cat("Checking for packages...\n") tryCatch({ library("ALL") library("Biobase") library("Category") library("GO") library("KEGG") library("Ruuid") library("annotate") library("genefilter") library("graph") library("hgu95av2") library("survival") cat("Excellent, you have all of the packages installed\n") }, error=function(e) { cat("You are missing one or more packages. Please ask for help installing the required packages\n") stop(e) })