Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
021fef5
Introduce vectorized tidyverse refactoring guide
DougManuel Sep 18, 2025
8779a49
Vectorized all chmsflow functions
rafdoodle Sep 23, 2025
d7895f6
Style code (GHA)
rafdoodle Sep 23, 2025
66565da
Updates to function documentation with clinical context and cross-ref…
DougManuel Sep 23, 2025
0a14727
Style code (GHA)
DougManuel Sep 23, 2025
ad97ec5
Merge branch 'main' into vector-tidyverse
DougManuel Sep 23, 2025
a8f82c5
Standardizes case_when default handling
DougManuel Sep 23, 2025
2a6c8c6
Added missing data to test data, tests, and documentation examples.
rafdoodle Sep 24, 2025
246de25
Styling updates
rafdoodle Sep 24, 2025
e06c21f
Minor update to .Rbuildignore
rafdoodle Sep 24, 2025
3cf3150
Implement complete StatsCan missing data handling for alcohol functions
DougManuel Sep 25, 2025
38cc924
Drafted specific coded missing data handling for all functions
rafdoodle Sep 28, 2025
895dca4
Finalized missing data code handling for all functions; updated docum…
rafdoodle Sep 29, 2025
f6e79e9
Rectified CMD failures by trimming example lengths and fixing cycles1…
rafdoodle Sep 29, 2025
682022c
Merge pull request #4 from Big-Life-Lab/vector-tidyverse
DougManuel Oct 1, 2025
b7dd25d
Added dummy data for all six cycles and ensured it included all raw v…
rafdoodle Oct 13, 2025
f6b39ab
Style code (GHA)
rafdoodle Oct 13, 2025
f483416
Delete man/calculate_Hhld_Income.Rd
rafdoodle Oct 15, 2025
f00f051
Delete man/determine_CVD_Family_History.Rd
rafdoodle Oct 15, 2025
039a9f7
Delete man/determine_CVD_Personal_History.Rd
rafdoodle Oct 15, 2025
cfd17b2
Fixing faulty Rd files and running GH actions on dev branch for now
rafdoodle Oct 15, 2025
3598240
Adding all data to pkgdown
rafdoodle Oct 15, 2025
32135cb
Clean final commit for CRAN prep fixes
DougManuel Oct 17, 2025
5993482
Style code (GHA)
DougManuel Oct 17, 2025
8753035
Add Dublin Core metadata for CHMS database cycles
DougManuel Oct 19, 2025
a71488d
Add CHMS metadata schemas for variables and variable_details
DougManuel Oct 19, 2025
bc7c8ce
Set eval = FALSE for chunks involving rec_with_table() to shorten CMD…
rafdoodle Oct 24, 2025
3e6f8b0
Added correct sample size, # of collection sites, and provinces to cy…
rafdoodle Oct 24, 2025
4dc6ce4
Added proper link to cycle 7
rafdoodle Oct 24, 2025
22c3132
Merge pull request #9 from Big-Life-Lab/database-metadata
rafdoodle Oct 25, 2025
720c807
Obtained documentation folder contents from cchsflow-dev and eliminat…
rafdoodle Oct 25, 2025
db52e31
Merge pull request #8 from Big-Life-Lab/metadata-schemas
rafdoodle Oct 25, 2025
f1bd365
Updates env setup for package reproducibility
DougManuel Oct 25, 2025
8370646
Merge pull request #6 from Big-Life-Lab/cran-prep-fixes
rafdoodle Oct 25, 2025
81f8ac5
Bringing corrected dummy data and worksheets from recently pruned moc…
rafdoodle Oct 25, 2025
8f872ee
Edited workflows
rafdoodle Oct 26, 2025
f6888c4
Updated lock file to ensure devtools::check() works, but quarto TMPDI…
rafdoodle Jan 6, 2026
c3fc17a
Added more edge-case tests, restructured test files, and jumped to al…
rafdoodle Jan 17, 2026
88e6199
Cleaned documentation and test grouping structure
rafdoodle Jan 17, 2026
2878cd7
Updated LICENSE
rafdoodle Jan 19, 2026
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
14 changes: 13 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,16 @@
^CODE_OF_CONDUCT.md
^.github
^\.github$
^.lintr
^.lintr
^doc$
^Meta$
^.quarto
^_freeze
^\.claude$
.*\.log$
^renv$
^renv\.lock$
^test_vignettes\.R$
^test_vignettes_with_timeout\.sh$
^vignette_.*\.txt$
^vignette_.*\.log$
18 changes: 18 additions & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Activate renv for reproducible package management
source("renv/activate.R")

# Use binary packages (no compiler needed)
# Posit Package Manager provides binaries for faster installation
options(
pkgType = "binary",
repos = c(CRAN = "https://cloud.r-project.org")
)

# Warn if R version is below the package floor
if (getRversion() < "4.0") {
warning(
"chmsflow requires R >= 4.0.0. ",
"You are using R ", getRversion(), ". ",
"Some features may not work correctly."
)
}
29 changes: 15 additions & 14 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,33 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
extra-packages: any::covr, any::xml2
needs: coverage

- name: Install Codecov CLI
run: pip install codecov-cli

- name: Run tests and generate coverage report
- name: Test coverage
run: |
cov <- covr::package_coverage()
covr::to_cobertura(cov, "coverage.xml")
cov <- covr::package_coverage(
quiet = FALSE,
clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
covr::to_cobertura(cov, filename = "coverage.xml")
shell: Rscript {0}

- name: Upload coverage report to Codecov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
codecov-cli upload-process -f "coverage.xml" -t "$CODECOV_TOKEN"
shell: bash
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
file: ./coverage.xml
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}

- name: Show testthat output
if: always()
Expand Down
15 changes: 12 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,12 @@ src/*.o
src/*.so
src/*.dll

# If you use renv for package dependency management, ignore these files
renv.lock
renv/
# renv for package dependency management
# Keep renv.lock and renv/activate.R in git for reproducibility
# Ignore the local library and cache
renv/library/
renv/local/
renv/staging/

# If you use packrat for package dependency management, ignore these files
packrat/
Expand All @@ -79,7 +82,13 @@ packrat.lock
# If you use lintr for code linting, ignore these files
.R/lintr_cache/

/doc/
/Meta/

# Quarto files
/.quarto/
/_freeze/
*_files/

# Claude use
.claude/
2 changes: 1 addition & 1 deletion .lintr
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
linters: linters_with_defaults(line_length_linter = NULL, object_name_linter = NULL, object_length_linter = NULL, cyclocomp_linter = cyclocomp_linter(complexity_limit = 100), return_linter = NULL)
linters: linters_with_defaults(line_length_linter = NULL, object_name_linter = NULL, object_length_linter = NULL, object_usage_linter = NULL, cyclocomp_linter = cyclocomp_linter(complexity_limit = 100), return_linter = NULL, pipe_consistency_linter = NULL)

15 changes: 7 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,26 @@ Package: chmsflow
Type: Package
Title: Transforming and Harmonizing CHMS Variables
Version: 0.1.0
Author: Rafidul Islam [aut, cre], Douglas Manuel [aut], Therese Chan [aut]
Maintainer: Rafidul Islam <raislam@ohri.ca>
Authors@R: c(
person("Rafidul", "Islam", email = "raislam@ohri.ca", role = c("aut", "cre")),
person("Douglas", "Manuel", email = "dmanuel@ohri.ca", role = c("aut"), comment = c(ORCID = "0000-0003-0912-0845")),
person("Douglas", "Manuel", email = "dmanuel@ohri.ca", role = c("aut"), comment = c(ORCID = "0000-0003-0912-0845")),
person("Therese", "Chan", email = "TChan@bruyere.org", role = c("aut")))
Description: Supporting the use of the Canadian Health Measures Survey (CHMS)
by transforming variables from each cycle into harmonized, consistent
versions that span survey cycles 1-6. This package uses rec_with_table(),
which was developed from 'sjmisc' rec(). Ludecke D (2018). "sjmisc: Data
and Variable Transformation Functions". Journal of Open Source Software,
3(26), 754. <doi:10.21105/joss.00754>.
Depends:
R (>= 3.5)
Imports: haven, logger
Depends:
R (>= 4.0)
Imports: dplyr, haven, logger
License: MIT + file LICENSE
URL: https://github.com/Big-Life-Lab/chmsflow, https://big-life-lab.github.io/chmsflow/
BugReports: https://github.com/Big-Life-Lab/chmsflow/issues
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
Suggests: dplyr, DT, kableExtra, knitr, quarto, readr, recodeflow, testthat (>= 3.0.0)
RoxygenNote: 7.3.3
Suggests: DT, kableExtra, knitr, quarto, readr, recodeflow, testthat (>= 3.0.0)
VignetteBuilder: quarto
Config/build/clean-inst-doc: FALSE
LazyData: true
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
YEAR: 2023
COPYRIGHT HOLDER: Rafidul Islam, Douglas Manuel and The Ottawa Hospital Research Institute
YEAR: 2026
COPYRIGHT HOLDER: Rafidul Islam
Loading