-
Notifications
You must be signed in to change notification settings - Fork 4
R notes
Valentin Gologuzov edited this page Oct 29, 2013
·
5 revisions
intstall packages:
source("http://bioconductor.org/biocLite.R")
biocLite()
biocLite('e1071')
biocLite('globaltest')
q()
R CMD INSTALL miXGENE -l /home/kost/res/mixgene_workdir/data/R
use from R:
.libPaths(c("/home/kost/res/mixgene_workdir/data/R",.libPaths()))
library("miXGENE")
use from Python
import rpy2.rinterface
import rpy2.robjects as R
from rpy2.robjects.packages import importr
R_LIB_CUSTOM_PATH = "/home/kost/res/mixgene_workdir/data/R"
importr("miXGENE", lib_loc=R_LIB_CUSTOM_PATH)
R.r['options'](warn=-1)