-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update NEWS.md * Changed typo in substance misuse cohort assignment * Add change to cohorts to NEWS * Fixes for GPOOH smrtype (#436) * Bring 2014/15 code up to date Missed at the last update * Update SMRtype for GP-OOH Missed at the last update. I categorised the COVID types but didn't include these in smrtype. * Carry across some git/GitHub changes from `main-R` * Fix sds option4 bug - SPSS (December 2022 Update) (#439) * Fix sds_end_date is earlier than sds_start_date by setting end_date to be the end of fyear (#424) Co-authored-by: Zihao Li <[email protected]> * Fix sds_end_date is earlier than sds_start_date by setting end_date to be the end of fyear (#424) Co-authored-by: Zihao Li <[email protected]> * Fix option 4 cases/styling Where all 3 options are missing/0 then this will be coded as option4 * Simplify code for fixing sds_option_4 * Deal with NA's and update logic * Convert to logical and deal with NA in one go Co-authored-by: Zihao Li <[email protected]> Co-authored-by: Zihao Li <[email protected]> Co-authored-by: James McMahon <[email protected]> * Update Macros for Dec22 update SPD and SIMD also updated, however, there is no zsav file available * Update geography macros * Amend HC year specific code Some of this code is now done in the All SC HC code and not needed here * Update IT reference * Add some extra tests to PIS Also improve formatting and lower case lots of variable names * Read new variables for PIS Keep and use the Paid items, and the Gross paid cost. * Update prescribing tests to compare new vs old * Rename PIS items variable in episode file * Update the individual file to use the new PIS variables * Add NEWS item for prescribing changes * Update variable names For running code successfully, these variables have changed in the SPD * Update GP OoH cost lookup I have updated the GP OoH costs with the latest numbers from the publication. In the spreadsheet I have uplifted the costs for those years (20/21, 21/22). The code needed updating to take into account that there are more years in the spreasheet now, and to generate costs for 22/23. * Update SPD var `UR2_2020` * Add Alter Type and update tidy`UR_2020` vars * Remove some redundant test code * Update to `urx_2020` in the individual file * Fix for datazone population lookup In the December 2022 update the datazone population lookup SPSS version had the wrong length variable for `datazone2011`. This seemed like the simplest fix but it will hopefully be redundant in future updates * Tweak tests for including `pis_paid_items` Small change for comparing the old file vs new file as this picks up `pis_dispensed_items` in the old file. This will need changing back at the next update * Fix bug - GP OoH cases being overcounted SPSS was counting `sysmis` as a case, so everyone was getting at least one case, and everyone with some GP OoHs was getting an extra case, unless they happened to **only** have GP OoH cases. * Add new variables to indiv for GP OoH COVID cases Added `ooh_covid_advice`, `ooh_covid_assesment` and `ooh_covid_other` * Temporarily add new OoH covid vars to indiv tests Can be removed at the next update * Remove `health_net_costincIncomplete` from indiv file I'm not sure how useful this ever was but now it only applies to DN which is only for limited years. * Remove the `HRI_LCA*_incDN` vars from indiv * Only include people with health activity in the HRI calculation * minor code tidy * Add additional indiv file tests for looking at the HRI distribution * Copy changes to HRI from 1920 to other years * Fix for prescribing tests being missed from zip * Make compression the maximum * Update anon chi add files * Reorder NEWS under a new GP OoH section. * Add updates regarding lookup changes to NEWS * Update NEWS with the release date Co-authored-by: shintoLamp <[email protected]> Co-authored-by: Jennit07 <[email protected]> Co-authored-by: Zihao Li <[email protected]> Co-authored-by: Zihao Li <[email protected]> Co-authored-by: Jennifer Thom <[email protected]>
- Loading branch information
1 parent
5d420f4
commit 0035b82
Showing
238 changed files
with
2,112 additions
and
1,522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: [main-R] | ||
pull_request: | ||
branches: [main-R] | ||
|
||
name: R-CMD-check | ||
|
||
jobs: | ||
R-CMD-check: | ||
runs-on: ${{ matrix.config.os }} | ||
|
||
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- {os: ubuntu-latest, r: '3.6'} | ||
- {os: ubuntu-latest, r: 'release'} | ||
|
||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
R_KEEP_PKG_SOURCE: yes | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
http-user-agent: ${{ matrix.config.http-user-agent }} | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::rcmdcheck | ||
needs: check | ||
|
||
- uses: r-lib/actions/check-r-package@v2 | ||
with: | ||
upload-snapshots: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,18 +22,27 @@ jobs: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
isPush: ${{ github.event_name == 'push' }} | ||
isPR: ${{ github.event.issue.pull_request && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/pkgdown') }} | ||
isPR: ${{ github.event.issue.pull_request && github.event.comment.body, '/pkgdown' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Checkout Pull Request | ||
if: contains(env.isPR, 'true') | ||
run: hub pr checkout ${{ github.event.issue.number }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
- name: Setup R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
- name: Install dependencies | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::pkgdown, local::. | ||
needs: website | ||
|
@@ -47,26 +56,25 @@ jobs: | |
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' | ||
- name: Create website | ||
if: contains(env.isPR, 'true') | ||
run: | | ||
pkgdown::build_site() | ||
shell: Rscript {0} | ||
|
||
- name: Create index file | ||
if: contains(env.isPR, 'true') | ||
run: | | ||
echo '<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;URL=/dev/index.html" /> <script language="javascript"> window.location.replace('/dev/index.html')</script></head></html>' > ./docs/index.html | ||
- name: Deploy to Netlify | ||
if: contains(env.isPR, 'true') | ||
id: netlify-deploy | ||
uses: nwtgck/actions-netlify@v1.2 | ||
uses: nwtgck/actions-netlify@v1 | ||
with: | ||
publish-dir: './docs' | ||
production-branch: main-R | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
production-branch: main-R github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: | ||
'Deploy from GHA: ${{ github.event.pull_request.title || github.event.head_commit.message }} (${{ github.sha }})' | ||
timeout-minutes: 1 | ||
timeout-minutes: 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: [main-R] | ||
pull_request: | ||
branches: [main-R] | ||
|
||
name: test-coverage | ||
|
||
jobs: | ||
test-coverage: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- name: Install dependencies | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::covr | ||
needs: coverage | ||
|
||
- name: Test coverage | ||
run: covr::codecov(quiet = FALSE) | ||
shell: Rscript {0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.