Skip to content

Commit

Permalink
fix case when createValidationDesign returns multiple designs
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Oct 8, 2024
1 parent dc11a46 commit f7adfb7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/Module-PatientLevelPredictionValidation.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ PatientLevelPredictionValidationModule <- R6::R6Class(
restrictPlpDataSettings = setting$restrictPlpDataSettings,
populationSettings = setting$populationSettings
)
designs[[length(designs) + 1]] <- design
# if design is single validationDesign instead of a list
if (inherits(design, "validationDesign")) {
design <- list(design)
}
designs <- c(designs, design)
}

databaseDetails <- PatientLevelPrediction::createDatabaseDetails(
Expand Down

0 comments on commit f7adfb7

Please sign in to comment.