-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add local module renv.lock validator script to extras
- Loading branch information
1 parent
5f54c59
commit 95b16d0
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
rootDir <- "C:/git/OHDSI" | ||
moduleList <- c( | ||
"Characterization", | ||
"CohortDiagnostics", | ||
"CohortGenerator", | ||
"CohortIncidence", | ||
"CohortMethod", | ||
"EvidenceSynthesis", | ||
"PatientLevelPrediction", | ||
"SelfControlledCaseSeries" | ||
) | ||
|
||
for (i in seq_along(moduleList)) { | ||
repoPath <- file.path(rootDir, paste0(moduleList[i], "Module")) | ||
if (dir.exists(repoPath)) { | ||
cat("Checking ", repoPath, "\n") | ||
cat(" -- Checking renv.lock file\n") | ||
Strategus::validateLockFile(filename = file.path(repoPath, "renv.lock")) | ||
cat(" -- Checking dev/renv.lock file\n") | ||
Strategus::validateLockFile(filename = file.path(repoPath, "renv/profiles/dev/renv.lock")) | ||
} else { | ||
warning(paste0(repoPath, "NOT FOUND!!")) | ||
} | ||
} |