Install R
$ sudo apt-get install r-base
$ sudo apt-get install r-base-dev r-base-core
Go to R
$ sudo R
> install.packages(repos="http://bioinformatics.mdanderson.org/OOMPA", dependencies=TRUE)
- ran into warnings and errors
- Error : package 'Biobase' could not be loaded
- Information to install biobase, http://www.bioconductor.org/packages/2.2/bioc/html/Biobase.html
> source("http://bioconductor.org/biocLite.R")
> biocLite("Biobase")
> install.packages(repos="http://bioinformatics.mdanderson.org/OOMPA", dependencies=TRUE)
> biocLite("Biobase")
> install.packages(repos="http://bioinformatics.mdanderson.org/OOMPA", dependencies=TRUE)
- select ClassComparison
- you should get the following sentence
* DONE (ClassComparison)
check if the package is installed
> library('ClassComparison')
> library('ClassComparison')
> install.packages(repos="http://bioinformatics.mdanderson.org/OOMPA", dependencies=TRUE)
- select ClassDiscovery
- select ClassDiscovery
- Error : package 'mclust' could not be loaded
To install mclust
> install.packages("Rserve")
* Done (Rserve)
On unix:
$ wget http://bioconductor.org/packages/1.9/bioc/src/contrib/vsn_1.12.0.tar.gz
$ wget http://bioconductor.org/packages/1.9/bioc/src/contrib/vsn_1.12.0.tar.gz
$ sudo R CMD INSTALL vsn_1.12.0.tar.gz
* Done (vsn)
Go to R
$ sudo R
> install.packages('mclust')
* Done (mclust)
> install.packages(repos="http://bioinformatics.mdanderson.org/OOMPA", dependencies=TRUE)
* DONE (ClassDiscovery)
check installation
> library('ClassDiscovery')
check installation
> library('ClassDiscovery')
While trying the command "install.packages(repos="http://bioinformatics.mdanderson.org/OOMPA", dependencies=TRUE)" in Mac OS X after installing Biobase, it returned this error:
ReplyDeleteError: .onLoad failed in loadNamespace() for 'tcltk'
I then downloaded and installed tcl/tk from this location:
http://socserv.socsci.mcmaster.ca/jfox/Courses/soc3h6/tcltk-8.5.5-x11.dmg
Its better to configure R with following flags
ReplyDelete$ ./configure --with-readline=no FPICFLAGS=-fPIC --enable-R-shlib --with-tcltk