Skip to content

Commit

Permalink
supress warnings for ResultModelManafer:: uploadResults()
Browse files Browse the repository at this point in the history
  • Loading branch information
IoannaNika committed Oct 23, 2024
1 parent 9d703f7 commit e6e5ea4
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions R/ResultsDataModel.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,22 @@ uploadResults <- function(connectionDetails,

ParallelLogger::logInfo("Unzipping ", zipFileName)
zip::unzip(zipFileName, exdir = unzipFolder)

ResultModelManager::uploadResults(
connectionDetails = connectionDetails,
schema = schema,
resultsFolder = unzipFolder,
tablePrefix = tablePrefix,
forceOverWriteOfSpecifications = forceOverWriteOfSpecifications,
purgeSiteDataBeforeUploading = purgeSiteDataBeforeUploading,
runCheckAndFixCommands = TRUE,
databaseIdentifierFile = "database.csv",
specifications = getResultsDataModelSpecifications(),
warnOnMissingTable = FALSE,
...

# suppressing warning for reserved keywords in SQL
suppressWarnings(
ResultModelManager::uploadResults(
connectionDetails = connectionDetails,
schema = schema,
resultsFolder = unzipFolder,
tablePrefix = tablePrefix,
forceOverWriteOfSpecifications = forceOverWriteOfSpecifications,
purgeSiteDataBeforeUploading = purgeSiteDataBeforeUploading,
runCheckAndFixCommands = TRUE,
databaseIdentifierFile = "database.csv",
specifications = getResultsDataModelSpecifications(),
warnOnMissingTable = FALSE,
...
)
)
}

Expand Down

0 comments on commit e6e5ea4

Please sign in to comment.