Skip to content

Commit

Permalink
fix input test
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Apr 15, 2024
1 parent 8f78468 commit ea255b6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions R/ExternalValidatePlp.R
Original file line number Diff line number Diff line change
Expand Up @@ -407,14 +407,11 @@ validateExternal <- function(validationDesignList,
if (inherits(validationDesignList, 'list')) {
lapply(validationDesignList, function(x)
checkIsClass(x, 'validationDesign'))

if (inherits(plpModel, 'list')) {
lapply(plpModel, function(x) checkIsClass(x, 'plpModel'))
} else {
checkIsClass(plpModel, 'plpModel')
plpModel <- list(plpModel)
checkIsClass(validationDesignList, 'validationDesign')
validationDesignList <- list(validationDesignList)
}

# check the class and make a list if a single database setting
if (inherits(databaseDetails, 'list')) {
lapply(databaseDetails, function(x)
Expand Down Expand Up @@ -567,4 +564,4 @@ validateModel <-
'validationResult'
))
return(result)
}
}

0 comments on commit ea255b6

Please sign in to comment.