Spaces:
Sleeping
Sleeping
Update packages.R
Browse files- packages.R +17 -5
packages.R
CHANGED
|
@@ -1,10 +1,22 @@
|
|
| 1 |
-
# packages.R
|
| 2 |
options(repos = c(CRAN = "https://cloud.r-project.org"))
|
| 3 |
|
| 4 |
-
# install remotes if missing (lightweight and recommended for GitHub installs)
|
| 5 |
if (!requireNamespace("remotes", quietly = TRUE)) {
|
| 6 |
-
install.packages("remotes")
|
| 7 |
}
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
options(repos = c(CRAN = "https://cloud.r-project.org"))
|
| 2 |
|
|
|
|
| 3 |
if (!requireNamespace("remotes", quietly = TRUE)) {
|
| 4 |
+
install.packages("remotes", repos = "https://cloud.r-project.org")
|
| 5 |
}
|
| 6 |
+
cat("R version:", R.version.string, "\n")
|
| 7 |
+
cat(".libPaths:\n"); print(.libPaths())
|
| 8 |
|
| 9 |
+
# Try installing lapop with explicit args for debugging
|
| 10 |
+
tryCatch({
|
| 11 |
+
remotes::install_github('lapop-central/lapop',
|
| 12 |
+
dependencies = TRUE,
|
| 13 |
+
force = TRUE,
|
| 14 |
+
build_vignettes = FALSE,
|
| 15 |
+
upgrade = 'never',
|
| 16 |
+
args = '--no-multiarch --no-test-load')
|
| 17 |
+
cat('lapop install succeeded\n')
|
| 18 |
+
}, error = function(e) {
|
| 19 |
+
message('lapop install failed: ')
|
| 20 |
+
message(e)
|
| 21 |
+
stop(e)
|
| 22 |
+
})
|