Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: verify required variables in dataset #45

Merged
merged 19 commits into from
Mar 15, 2024
Merged

Conversation

lwjohnst86
Copy link
Member

@lwjohnst86 lwjohnst86 commented Feb 26, 2024

This is a "stacked PR" that builds on #37.

Adds two functions, along with documentation and tests.

  • verify_required_variables() will be used internally for functions to check that the input dataset contains the correct variables for the algorithm.
  • get_register_abbrev() lists the abbreviations for the registers we require.

Also created an internal dataset that lists the registers and variables needed. This internal dataset (generated in data-raw/variable-descriptions.R file) is used for other functions to check that the data has the correct variables.

Closes #33

@lwjohnst86 lwjohnst86 self-assigned this Feb 26, 2024
NEWS.md Outdated Show resolved Hide resolved
R/osdc-package.R Outdated Show resolved Hide resolved
R/osdc-package.R Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
tests/testthat/test-verify-variables.R Outdated Show resolved Hide resolved
tests/testthat/test-verify-variables.R Show resolved Hide resolved
tests/testthat/test-verify-variables.R Outdated Show resolved Hide resolved
Base automatically changed from variable-description to main March 15, 2024 12:08
@lwjohnst86 lwjohnst86 merged commit 0d68b77 into main Mar 15, 2024
1 of 3 checks passed
@lwjohnst86 lwjohnst86 deleted the feat/check-variables branch March 15, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Function to validate input variable list with expected variables from register
3 participants