EHDEN / CatalogueExport

Exports the data from the OMOP-CDM that is necessary for the EHDEN Database Catalogue
Apache License 2.0
9 stars 6 forks source link

vocabDatabaseSchema parameter not passed to function .getAnalysisSql() #18

Closed larshalvorsen closed 3 years ago

larshalvorsen commented 3 years ago

When running the catalogueExport() function in a "clean" R environment, the function fails with the error

Error in SqlRender::loadRenderTranslateSql(sqlFilename = file.path("analyses",  : 
  object 'vocabDatabaseSchema' not found

Looking at the parameter list for .getAnalysisSql(), there is no parameter vocabDatabaseSchema. However, within the .getAnalysisSql() function, a call is made to SqlRender::loadRenderTranslateSql(), in which the (missing) parameter vocabDatabaseSchema is attempted passed.

If the vocabDatabaseSchema is declared as a global variable, the package runs.