Closed keesvanbochove closed 2 years ago
Workaround is to disable the plots: in between calling cdmInspection and generateResultsDocument, run:
results$dataTablesResults <- NULL
With thanks to @MaximMoinat.
Do not really understand what the problem is, have not seen it before on the databases. Was Achilles run on the database prior to running cdmInspection and are the results in the schema you defined?
That is very likely the issue. We might want to detect this and give a warning that Achilles has not been run yet (or make this in another way very explicit).
On Thu, 4 Mar 2021, 15:09 Peter Rijnbeek, notifications@github.com wrote:
Do not really understand what the problem is, have not seen it before on the databases. Was Achilles run on the database prior to running cdmInspection and are the results in the schema you defined?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EHDEN/CdmInspection/issues/57#issuecomment-790644123, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEH767C2ZQIPYBZ6O5LXBLLTB6IB7ANCNFSM4YQ2NHTQ .
Yes agreed, it is in the Readme but we can add a message in the package
When running the package on Truven claims dataset, results generation works fine but then when creating the Word document the script breaks on a column which it expects but isn't there (see https://github.com/EHDEN/CdmInspection/blob/712bc3fa97d36c66121a8ae8776c594be4100043/R/Helper.R#L128). What could cause this? Can we skip generation of these plots?
Error: Can't rename columns that don't exist. x Column
X_CALENDAR_MONTH
doesn't exist. Traceback: