Infrastructure for building a CRAN-ready R package around clone-censor-weighting workflows for target trial emulation.
Pin local development to R 4.4.2 with rig:
rig add 4.4.2
rig default 4.4.2Then install renv once and restore the project library:
install.packages("renv")
renv::restore()If you need to refresh the lockfile after changing package dependencies:
renv::settings$snapshot.type("explicit")
renv::status(dev = TRUE)
renv::snapshot(dev = TRUE)The repository includes two workflows:
check-reproducible.yamlrunsR CMD checkagainst pinnedR 4.4.2withrenv.check-latest.yamlruns broader cross-platform checks against release, devel, and oldrel.