reviewStudy
reviewStudy.RmdOverview
When you receive a study package (or before you ship one), it is useful to quickly inspect:
- What files are included (R scripts, JSON, CSV, Excel)
- Whether
renv.lockexists, and what it contains - Whether any dependencies look surprising for the study type
OmopStudyBuilder provides two helpers:
-
reviewStudyCode()summarises the contents of a directory -
reviewStudyDependencies()summarises dependencies based onrenv.lock
Review files in a study folder
Point reviewStudyCode() at the folder you want to
inspect (often studyCode/ or
diagnosticsCode/).
The simplest pattern is to run these commands from within the project
you want to review (for example, open studyCode.Rproj or
diagnosticsCode.Rproj).
reviewStudyCode(".")