Closed anthonysena closed 2 years ago
Related to #18: The R function createCohortsAndRef
is currently responsible for creating the "reference" tables but it also creates the IR summary table here.
If someone chooses to use the execute
function of the package with the following parameters:
createCohortsAndRef = FALSE,
runCohortDiagnostics = FALSE,
runIR = TRUE
The process will skip re-creating the IR summary table and append the results to the existing table since the runIncidenceAnalysis.sql does not clear that table at the moment.
Reopening to ensure the issue fixes for the DP
@yampeku - if I were you, I would just run from a clean folder and rerun the whole thing.
Make sure the the version of the package you get is V1.2.7.
I sometimes run these first just to double make sure the old package is gone:
#renv::deactivate()
#remove.packages("Covid19SubjectsAesiIncidenceRate")
#renv::purge("Covid19SubjectsAesiIncidenceRate")
In review from ETHON, there are data partners that have multiple duplicate rows in the
incidenceAnalysis
. The bug may be in the way that we are truncating the table prior to each IR run (it may be skipped) and/or that there is something wrong in the way that we're writing the results to CSV incrementally.