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

Unit testing for data-process.R #76

Merged
merged 29 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
33225ce
:wrench: update gen_data_weighted_rf using config
SaranjeetKaur Oct 3, 2024
e9198eb
:arrow_up: update renv.lock file
SaranjeetKaur Oct 3, 2024
03c0fdd
update gen_data_weighted_rf to include config values
SaranjeetKaur Oct 16, 2024
28aea51
:wrench: fix failing checks in gen_data_weighted_rf
SaranjeetKaur Oct 16, 2024
1aaa723
update renv.lock
SaranjeetKaur Oct 16, 2024
3955b10
update R version and package versions in renv.lock
SaranjeetKaur Oct 16, 2024
182ab7c
update gen_data_Weighted_ds
SaranjeetKaur Oct 16, 2024
73fe164
Merge branch 'main' into config
SaranjeetKaur Oct 16, 2024
a18388e
update gen_data_weighted_burden
SaranjeetKaur Oct 16, 2024
738dc93
Merge branch 'main' into config
SaranjeetKaur Oct 17, 2024
b2c8010
initialise testing for data-process.R
SaranjeetKaur Oct 17, 2024
13af2cb
Merge pull request #68 from imperialCHEPI/config
SaranjeetKaur Oct 18, 2024
58a1644
:memo: include data_ps3_reformulation for unit tests
SaranjeetKaur Oct 18, 2024
6b666dc
initialise testing for data-process.R
SaranjeetKaur Oct 17, 2024
e6314ad
:memo: include data_ps3_reformulation for unit tests
SaranjeetKaur Oct 18, 2024
e39d380
Merge branch 'tests' of https://github.com/imperialCHEPI/healthgpsrvi…
SaranjeetKaur Oct 18, 2024
cb9e41b
:white_check_mark: add unit test for gen_data_weighted using ps3 refo…
SaranjeetKaur Oct 26, 2024
6b9a30d
add precommit config yml
SaranjeetKaur Oct 26, 2024
3822a22
add a auto merge pre-commit yml
SaranjeetKaur Oct 26, 2024
c441327
update version
SaranjeetKaur Oct 26, 2024
3824250
remove auto merge yml
SaranjeetKaur Oct 27, 2024
d61f7ef
add unit test for gen_data_weighted_rf
SaranjeetKaur Oct 27, 2024
c6d8135
fix styling in /R and tests files
SaranjeetKaur Oct 27, 2024
d5a0fc2
fix some linting and styling
SaranjeetKaur Oct 27, 2024
a139c3d
Revert "fix some linting and styling"
SaranjeetKaur Oct 27, 2024
e3d814b
fix some styling
SaranjeetKaur Oct 27, 2024
0876033
add unit test for gen_data_weighted_ds
SaranjeetKaur Oct 27, 2024
5e1b570
add unit test for gen_data_weighted_burden
SaranjeetKaur Oct 28, 2024
94dc0b8
add unit test for gen_data_weighted_spline
SaranjeetKaur Oct 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
^renv$
^renv\.lock$
^.*\.Rproj$
^\.Rproj\.user$
^LICENSE\.md$
^\.github$
^README\.Rmd$
^\.Rproj\.user$
^\.github$
^\.pre-commit-config\.yaml$
^_pkgdown\.yml$
^docs$
^pkgdown$
^renv$
^renv\.lock$
76 changes: 76 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# All available hooks: https://pre-commit.com/hooks.html
# R specific hooks: https://github.com/lorenzwalthert/precommit
repos:
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.4.3.9001
hooks:
- id: style-files
args: [--style_pkg=styler, --style_fun=tidyverse_style]
- id: roxygenize
# codemeta must be above use-tidy-description when both are used
# - id: codemeta-description-updated
- id: use-tidy-description
- id: spell-check
exclude: >
(?x)^(
.*\.[rR]|
.*\.feather|
.*\.jpeg|
.*\.pdf|
.*\.png|
.*\.py|
.*\.RData|
.*\.rds|
.*\.Rds|
.*\.Rproj|
.*\.sh|
(.*/|)\.gitignore|
(.*/|)\.gitlab-ci\.yml|
(.*/|)\.lintr|
(.*/|)\.pre-commit-.*|
(.*/|)\.Rbuildignore|
(.*/|)\.Renviron|
(.*/|)\.Rprofile|
(.*/|)\.travis\.yml|
(.*/|)appveyor\.yml|
(.*/|)NAMESPACE|
(.*/|)renv/settings\.dcf|
(.*/|)renv\.lock|
(.*/|)WORDLIST|
\.github/workflows/.*|
data/.*|
)$
- id: lintr
- id: readme-rmd-rendered
- id: parsable-R
- id: no-browser-statement
- id: no-print-statement
- id: no-debug-statement
- id: deps-in-desc
- id: pkgdown
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: ['--maxkb=200']
- id: file-contents-sorter
files: '^\.Rbuildignore$'
- id: end-of-file-fixer
exclude: '\.Rd'
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
rev: v1.6.1
hooks:
# Only required when https://pre-commit.ci is used for config validation
- id: check-pre-commit-ci-config
- repo: local
hooks:
- id: forbid-to-commit
name: Don't commit common R artifacts
entry: Cannot commit .Rhistory, .RData, .Rds or .rds.
language: fail
files: '\.(Rhistory|RData|Rds|rds)$'
# `exclude: <regex>` to allow committing specific files

ci:
autoupdate_schedule: monthly
skip: [pkgdown]
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ Imports:
ggplot2,
grDevices,
gridExtra,
purrr,
rlang,
scales,
splines,
stats,
stringr,
tidyr
Suggests:
testthat (>= 3.0.0)
Expand Down
Loading
Loading