-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdates.R
More file actions
19 lines (15 loc) · 869 Bytes
/
Copy pathupdates.R
File metadata and controls
19 lines (15 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
## package dependencies for reinstalling
pkglist <- c("mefa", "mefa4", "vegan", "rgl", "mgcv", "scatterplot3d",
"permute", "rjags", "dclone", "dcmle", "detect", "sharx", "ade4",
"ResourceSelection", "PVAClone", "pbapply", "coda", "snow",
"R2WinBUGS", "rlecuyer", "Formula", "maptools", "BRugs", "lme4",
"R2OpenBUGS", "RODBC", "rgdal", "raster", "sp", "epiR", "plotrix",
"reshape", "simba", "labdsv", "Hmisc", "untb", "ggplot2",
"ineq", "pscl", "rpart", "gbm", "glmnet", "knitr", "ellipse",
"betareg", "pROC")
(toInst <- setdiff(pkglist, rownames(installed.packages())))
if (length(toInst) > 0)
install.packages(toInst, repos="http://cran.at.r-project.org/")
#if (.Platform$OS.type != "windows")
# install.packages("Aspell", repos = "http://www.omegahat.org/R")
update.packages(repos="http://cran.at.r-project.org/", ask=FALSE)