Initial commit
This commit is contained in:
commit
3cba772836
1341 changed files with 532924 additions and 0 deletions
20
FLZ/setup_renv.R
Normal file
20
FLZ/setup_renv.R
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Einmalig ausfuehren, bevor die App zum ersten Mal gestartet wird.
|
||||
# Initialisiert renv und installiert alle benoetigten Pakete.
|
||||
#
|
||||
# 'formr' wird nicht von app.R selbst benoetigt (die App importiert keine
|
||||
# API-Keys/DB-Zugriffe direkt), sondern vom extern gepflegten, gesourcten
|
||||
# Download-Skript (../get_data_flz.R) - analog zu DBI/RSQLite, die vom
|
||||
# gesourcten Pseudonym-Skript gebraucht werden. 'formr' liegt nicht auf
|
||||
# CRAN, daher Installation ueber remotes::install_github().
|
||||
|
||||
renv::init()
|
||||
|
||||
pkgs = c("shiny", "dplyr", "ggplot2", "haven", "officer", "DBI", "RSQLite")
|
||||
install.packages(pkgs)
|
||||
|
||||
if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")
|
||||
remotes::install_github("rubenarslan/formr")
|
||||
|
||||
renv::snapshot()
|
||||
|
||||
message("Setup abgeschlossen. App starten mit: shiny::runApp()")
|
||||
Loading…
Add table
Add a link
Reference in a new issue