diff --git a/R/Module-Characterization.R b/R/Module-Characterization.R index b2b0593..0ac8145 100644 --- a/R/Module-Characterization.R +++ b/R/Module-Characterization.R @@ -26,6 +26,13 @@ CharacterizationModule <- R6::R6Class( workFolder <- jobContext$moduleExecutionSettings$workSubFolder resultsFolder <- jobContext$moduleExecutionSettings$resultsSubFolder + # Handle cleaning of incremental folders/files + if (isTRUE(executionSettings$incremental)) { + Characterization::cleanIncremental(workFolder) + } else { + Characterization::cleanNonIncremental(workFolder) + } + Characterization::runCharacterizationAnalyses( connectionDetails = connectionDetails, targetDatabaseSchema = jobContext$moduleExecutionSettings$workDatabaseSchema,