Hi all
i am trying to perform external validation with Patient level prediction.
I follow the guidelines as are dictated in this site:
even if i am able to create the external validation package and the results
however when i am trying to create the shiny app that includes the validation results
the app outputs the following error and crashes:
Warning: Error in do.call: ‘what’ must be a function or character string
65: do.call
64: getPlpResult [helpers.R#54]
63: [/home/yannis/R/x86_64-pc-linux-gnu-library/3.6/PatientLevelPrediction/shiny/PLPViewer/server.R#60]
47: plpResult
46: [/home/yannis/R/x86_64-pc-linux-gnu-library/3.6/PatientLevelPrediction/shiny/PLPViewer/server.R#165]
3: shiny::runApp
2: viewPlps
1: PatientLevelPrediction::viewMultiplePlp
Warning: Error in do.call: ‘what’ must be a function or character string
119:
the code that i run has the folllowing structure:
outputFolder<-"/blabla/testmodelsResults_ex"
mypackage::execute(connectionDetails = connectionDetails,
cdmDatabaseSchema = cdmDatabaseSchema,
cdmDatabaseName = cdmDatabaseName,
cohortDatabaseSchema = cohortDatabaseSchema,
cohortTable = cohortTable,
oracleTempSchema = oracleTempSchema,
outputFolder = outputFolder,
createProtocol = F,
createCohorts = T,
runAnalyses = T,
createResultsDoc = F,
packageResults = F,
createShiny = T,
# createValidationPackage = T,
createValidationPackage = T,
minCellCount= 5)
PatientLevelPrediction::viewMultiplePlp(outputFolder)
library(mypackageValidation)
outputFolder_val <-"/blabla/testmodelsResults_ex/Validation"
mypackageValidation::execute(connectionDetails = connectionDetails,
databaseName = cdmDatabaseName,
cdmDatabaseSchema = cdmDatabaseSchema,
cohortDatabaseSchema = cohortDatabaseSchema,
oracleTempSchema = oracleTempSchema,
cohortTable = cohortTable,
outputFolder = outputFolder_val,
createCohorts = T,
runValidation = T,
packageResults = F,
minCellCount = 5,
sampleSize = NULL)
mypackage::execute(connectionDetails = connectionDetails,
cdmDatabaseSchema = cdmDatabaseSchema,
cdmDatabaseName = cdmDatabaseName,
cohortDatabaseSchema = cohortDatabaseSchema,
cohortTable = cohortTable,
outputFolder =outputFolder,
minCellCount= 5,
createShiny = T)
PatientLevelPrediction::viewMultiplePlp(outputFolder)
Am i doing something wrong?
thank you in advance.