Spaces:
Sleeping
Sleeping
Update app.R
Browse files
app.R
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
library(lapop)
|
| 2 |
library(haven)
|
| 3 |
library(dplyr)
|
|
|
|
| 1 |
+
if (!requireNamespace("lapop", quietly = TRUE)) {
|
| 2 |
+
message("lapop missing at app start; attempting install (this will print logs).")
|
| 3 |
+
install.packages("remotes", repos='https://cloud.r-project.org')
|
| 4 |
+
remotes::install_github('lapop-central/lapop', dependencies=TRUE, force=TRUE, build_vignettes=FALSE, upgrade='never')
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
library(lapop)
|
| 8 |
library(haven)
|
| 9 |
library(dplyr)
|