You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.Rmd
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -33,12 +33,13 @@ You can find more information on [the NHP model project information site](https:
33
33
34
34
## For developers
35
35
36
-
The app is built and maintained by members of [the Strategy Unit's Data Science team](https://the-strategy-unit.github.io/data_science/).
36
+
The guidance below is for the members of [the Strategy Unit's Data Science team](https://the-strategy-unit.github.io/data_science/), who built and maintain this app.
37
+
37
38
38
39
### Structure
39
40
40
41
Technically there are two apps: the main app in the `main` branch, and the inputs selection app (where users start or edit a scenario) in the `inputs_selection_app` branch.
41
-
Users arrive at the selection app before being routed to the main app.
42
+
Users arrive at the selection app before being routed to the main app.
42
43
43
44
Both apps are built with [Shiny](https://shiny.posit.co/) and the main app uses the [the {golem} package](https://thinkr-open.github.io/golem/).
44
45
Server and UI modules can be found in `R/`, configuration in `inst/golem-config.yml` and supporting data and text in `inst/app/`.
@@ -55,7 +56,7 @@ Then add an `.Renviron` file to the project root that contains the required envi
55
56
Copy into it the required variables, which are listed in the `.Renviron.example`.
56
57
You can get the values you need from a member of the Data Science team.
57
58
58
-
Then, from the `main` branch (or your development branch of it), use Git's `worktree` function to put the `inputs_selection_app` branch (or your development branch of it) in its own subfolder.
59
+
Then, from the `main` branch (or your development branch of it), use Git's `worktree` function to put the `inputs_selection_app` branch (or your development branch of it) in its own subfolder.
59
60
60
61
In the terminal:
61
62
@@ -82,7 +83,7 @@ The method for doing this depends on your IDE.
82
83
In RStudio:
83
84
84
85
1. Open the `dev/watch.R` script and go to the 'Background Jobs' tab of the console pane and click the 'Start Background Job' button.
85
-
2. Click 'Start' after checking that the 'R Script' path is pre-populated with the path to `watch.R` (otherwise select it yourself).
86
+
2. Click 'Start' after checking that the 'R Script' path is pre-populated with the path to `watch.R` (otherwise select it yourself).
86
87
3. When ready, a message will tell you to visit `http://127.0.0.1:9081/` in your browser.
87
88
88
89
In Positron: run `source('dev/watch.R')` and click the link to the URL when complete.
@@ -107,14 +108,17 @@ To test the unreleased app in our development environment:
107
108
When using the dev inputs selection app on Connect, make sure to set the 'Model Version' dropdown to 'dev' in the expandable 'Advanced Options' box.
108
109
That way you'll be taken to the dev inputs app when you hit 'Start'.
109
110
110
-
### Data extraction
111
+
### Data
111
112
112
113
The app displays trust-specific data to users.
113
114
The data is processed via Databricks scripts in [the nhp_data repository](https://github.com/The-Strategy-Unit/nhp_data) and stored in Azure storage.
114
115
116
+
If the data updates and you need to invalidate the current cache, you force a reset by appending `?reset_cache=true` to the app's canonical URL at `https://connect.strategyunitwm.nhs.uk/nhp/inputs/` (authorised devs only).
117
+
115
118
### Deployment
116
119
117
-
Deployment is controlled by GitHub Actions, where:
120
+
Deployment is controlled by GitHub Actions in `.github/workflows/`, where:
118
121
119
122
* pushes to the `main` branch redeploy the app to /nhp/dev/inputs/ for purposes of quality assurance
120
123
* tagged releases trigger a new deployment to /nhp/vX-Y/inputs/, where 'vX-Y' is the current version (note the hyphen)
124
+
* manual deployment is possible with `connect-publish-manual.yaml`
0 commit comments