-
Notifications
You must be signed in to change notification settings - Fork 4
/
00_Setup.R
43 lines (35 loc) · 1.66 KB
/
00_Setup.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
##------------------------------------------------------------------------------
## CLEAR THE GLOBAL ENVIRONMENT
##------------------------------------------------------------------------------
rm(list=ls(), pos=.GlobalEnv)
##------------------------------------------------------------------------------
## INSTALL DEPENDENCIES IF MISSING
##------------------------------------------------------------------------------
if(!"devtools" %in% rownames(installed.packages())){
install.packages("devtools",
dependencies = TRUE,
repos = "http://cran.rstudio.com/")
}
if(!"Rcpp" %in% rownames(installed.packages())){
install.packages("Rcpp",
dependencies = TRUE,
repos = "http://cran.rstudio.com/")
}
if(!"geneorama" %in% rownames(installed.packages())){
devtools::install_github('geneorama/geneorama')
}
if(installed.packages()["geneorama","Version"] < "1.5.0"){
devtools::install_github('geneorama/geneorama')
}
##------------------------------------------------------------------------------
## DETACH ANY "NON STANDARD" PACKAGES
##------------------------------------------------------------------------------
# geneorama::detach_nonstandard_packages()
##------------------------------------------------------------------------------
## UPDATE PACKAGES?
##------------------------------------------------------------------------------
## If you're having problems, try updating packages:
## ** NOTE: ask=FALSE in the update packages command below **
# getCRANmirrors()
# update.packages(repos = "https://cloud.r-project.org/", ask = FALSE)
# update.packages(repos = "https://cloud.r-project.org/")