Session 8: Final Course Wrap-Up
CohortMethod in perspective: know the design logic, not every defaultSelfControlledCaseSeriesrenv to lock and restore package versionsCohortMethod or CohortMethodModuleformals() before you accept themSelfControlledCaseSeries (SCCS) is a within-person, case-only designCohortMethod; it comes with its own assumptions and diagnosticsSelfControlledCaseSeriesModuleSelective publication can make an evidence base look much stronger and much more directional than it really is.
renvrenv creates a project-specific library instead of relying on whatever happens to be installed globallyrenv.lock records exact package versions so collaborators can recreate the environmentrenv helps reproducibility at the software-environment levelrenv Workflowsnapshot() writes the current package state to the lockfilerestore() rebuilds the project library from that lockfilerenv::install() alone is often not enough to put a package into renv.lockrenv Decides What To Lockrenv::snapshot() uses implicit discovery of project dependenciesinstall() changes the project library, while snapshot() decides what gets declared in the lockfilelibrary(pkg), require(pkg), and pkg::fun()renv::dependencies() to inspect what renv thinks the project uses.renvignore when you want tighter control over the scanRenvManagement.Rrenv scan the whole projectrenv.lock records the GitHub remote metadata as well as the package versionrenv::install("OHDSI/Strategus") alone may not lock it; you still need project code that references it before an implicit snapshot()resultsFolder in your execution settingsOhdsiReportGeneratorresultsDataModelSettings <- Strategus::createResultsDataModelSettings(
resultsDatabaseSchema = "study_results",
resultsFolder = "path/to/results"
)
Strategus::createResultDataModel(
analysisSpecifications = analysisSpecifications,
resultsDataModelSettings = resultsDataModelSettings,
resultsConnectionDetails = resultsConnectionDetails
)
Strategus::uploadResults(
analysisSpecifications = analysisSpecifications,
resultsDataModelSettings = resultsDataModelSettings,
resultsConnectionDetails = resultsConnectionDetails
)renv so your software environment is reproducible too