Skip to content

Commit

Permalink
Adding workaround for PLP vignette issue
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed Mar 28, 2024
1 parent 3192db2 commit d8ede45
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
7 changes: 5 additions & 2 deletions extras/Releasing/PackageCheckFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ prepareForPackageCheck <- function() {
# }
# }

checkPackage <- function(package, inCran) {
checkPackage <- function(package, inCran, additionalCheckArgs = c()) {
writeLines(sprintf("*** Checking package '%s' ***", package))
gitHubOrganization <- "ohdsi"
if (inCran) {
Expand All @@ -53,7 +53,10 @@ checkPackage <- function(package, inCran) {
unlink(docDir, recursive = TRUE)
}
# devtools::check_built(path = sourcePath)
rcmdcheck::rcmdcheck(path = sourcePath, args = c("--no-manual", "--no-multiarch", "--as-cran"), error_on = "warning")
rcmdcheck::rcmdcheck(path = sourcePath,
args = c("--no-manual", additionalCheckArgs),
build_args = c("--no-multiarch", additionalCheckArgs),
error_on = "warning")
}

getPackageDependenciesFromGitHub <- function(package) {
Expand Down
13 changes: 10 additions & 3 deletions extras/Releasing/RunCheckOnAllHadesPackages.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ saveRDS(prepareForPackageCheck(), "Dependencies.rds")
dependencies <- readRDS("Dependencies.rds")
# Skipping Hydra, as renv seems to clash with skeleton renv environments:
dependencies <- dependencies[dependencies$name != "Hydra", ]
for (i in 1:nrow(dependencies)) {
checkPackage(package = dependencies$name[i], inCran = dependencies$inCran[i])

for (i in 4:nrow(dependencies)) {
if (dependencies$name[i] == "PatientLevelPrediction") {
# Temp workaround for https://github.com/OHDSI/PatientLevelPrediction/issues/435
additionalCheckArgs <- c("--no-build-vignettes", "--ignore-vignettes")
} else {
additionalCheckArgs <- c()
}
checkPackage(package = dependencies$name[i],
inCran = dependencies$inCran[i],
additionalCheckArgs = additionalCheckArgs)
}
unlink("Dependencies.rds")

0 comments on commit d8ede45

Please sign in to comment.