-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathinstall_requirements.R
More file actions
executable file
·30 lines (24 loc) · 999 Bytes
/
install_requirements.R
File metadata and controls
executable file
·30 lines (24 loc) · 999 Bytes
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
#!/usr/bin/env Rscript
requirements <- c(
'igraph',
'coda',
'testthat',
'R6',
'mvtnorm', ## needed for test-distributions.R
'abind', ## needed for test-compareMCMCs.R
'ggplot2', ## needed for test-compareMCMCs.R
'covr', ## needed for code coverage reports
'pracma', ## for AD
'numDeriv', ## for AD
'mcmcse', ## for MCEM
'nimbleQuad' ## for laplace for MCEM test
# 'lme4' ## for test-ADlaplace.R
)
for (package in requirements) {
if (!suppressPackageStartupMessages(require(package,
character.only = TRUE))) {
install.packages(package, repos = 'https://cran.r-project.org')
}
}
## Apparently a bug in Matrix (as of early 2024) is causing an issue (https://bioconductor.org/packages/devel/bioc/vignettes/dreamlet/inst/doc/errors.html) that is causing test-ADlaplace.R failures when fitting a model with lmer.
install.packages("lme4", type = "source")