OHDSI / ResultModelManager

RMM is an R package designed to handle common ohdsi results data management functions by providing a common API for data model migrations and definitions
https://ohdsi.github.io/ResultModelManager/
Apache License 2.0
3 stars 2 forks source link

Error in PLP when called from Strategus #29

Open TomWhite-MedStar opened 1 year ago

TomWhite-MedStar commented 1 year ago

When running either of the two main Strategus projects (AntiVegf and Flouroquinolone), the run fails during PLP with this message: Error in !migrations$executed : invalid argument type This occurs at line # 216 of DataMigrationManager.R The line in question is migrations[!migrations$executed, ]

I am using R version 4.2.3 I happen to be using Databricks, but the error appears independent of the DBMS.

TomWhite-MedStar commented 1 year ago

The root issue may be line 130 in DataMigrationManger.R, which returns and empty data.frame(). So if migrations <- data.frame(), then migrations$executed is NULL and !migrations$executed throws invalid argument type