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

# Install R Packages, by Genshiro A Sunagawa
# 2019-07-27 updated
 
pkgs<-c(
	# big guys
	"tidyverse",
	"magrittr",
	"Cairo",
	"MASS",
	"tools",
	"utils",
	"devtools",
	"graphics",
	"rstan",
	# orhters are in alphabetical order
	"bayesplot",
	"coda",
	"glmmML",
	"grid",
	"extrafont",
	"jsonlite",
	"keras",
	"knitr",
	"lubridate",
	"loo",
	"methods",
	"mvtnorm",
	"pdfCluster",
	"progress",
	"reshape2",
	"RCurl",
	"readxl",
	"scales",
	"statmod",
	"stats",
	"stringr")
 
for (pkg in pkgs){
	if (!(pkg %in% rownames(installed.packages()))){
		install.packages(pkg, dependencies = TRUE)
	}
}

library(devtools)
devtools::install_github("rmcelreath/rethinking")
 
#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")))
 
if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

BiocManager::install("AnnotationDbi")
BiocManager::install("org.Mm.eg.db")
BiocManager::install("DESeq2")
BiocManager::install("CAGEr")
BiocManager::install("edgeR")


library(extrafont)
font_import(prompt=FALSE) # run only once!!

コメント

タイトルとURLをコピーしました