-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
49 lines (34 loc) · 1.78 KB
/
README.Rmd
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# NHP Elicitation Tool
<!-- badges: start -->
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental)
<!-- badges: end -->
Shiny app for the NHP National Elicitation Project.
## Deployment
The script `deploy.R` can be used to redeploy to the production and development environments.
The app is controlled by some environment variables that need to be set:
- `PHASE_1_END` should be the time and date when the first phase should end (in the form `YYYY-mm-dd HH:MM:SS` for the timezone `Europe/London`)
- `PHASE_2_END` should be as `PHASE_1_END`, but the time and date for when the second phase should end
- `PHASE_2_LIVE` should be set to a non-empty string to enable the second phase of the app: this allows the app to enter a "disabled" state at the end of phase 1
- `NHP_SALT` is a value that is used when encrypting the emails of users
- `save_path` should point to the location where to save the database to. If not set, then it defaults to the current working directory
## Development usage
The data required to run the app can be rebuilt using `targets::tar_make()`. There are a few things that need to be set
up in order to get this to work.
1) you will need to create a `.Renviron` file, with the following items:
- DB_SERVER=...
- DB_DATABASE=...
- NHP_SALT=...
2) you will need to be connected to the MLCSU VPN and have access to the database.
3) you will need a copy of the file `recruitment.xlsx`, stored in the root of the project folder.