2018-01

Programming

Rにインストールしてるパッケージ 2

# 2018-01-26 updated

pkgs<-c("tidyverse","MASS","glmmML","extrafont",
 "grid","reshape2","rstan","knitr",
 "scales","Cairo","pdfCluster","methods",
 "statmod","stats","graphics","RCurl",
 "jsonlite","tools","utils","reshape")

for (pkg in pkgs){
 if (!(pkg %in% rownames(installed.packages()))){
 install.packages(pkg, dependencies = TRUE)
 }
}

if ("package:h2o" %in% search()) { detach("package:h2o", unload=TRUE) }
if ("h2o" %in% rownames(installed.packages())) { remove.packages("h2o") }
install.packages("h2o", type="source", 
 repos=(c("http://h2o-release.s3.amazonaws.com/h2o/latest_stable_R")))

## try http:// if https:// URLs are not supported
source("https://bioconductor.org/biocLite.R")
biocLite()
biocLite("CAGEr")

library(extrafont)
font_import() # run only once!!
タイトルとURLをコピーしました