robertvidigal commited on
Commit
0c93d8f
·
verified ·
1 Parent(s): 650c43b

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +6 -0
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)