Closed schuemie closed 4 years ago
Agree - i dont know. This function does not call an API endpoint directly, but uses another function getCohortDefinitionExpression
So, i think these two lines are not needed (httpheader and url) https://github.com/OHDSI/ROhdsiWebApi/blob/90340f066ea350b7eb5fdcf184961d79164ecd48/R/CohortDefinition.R#L329
webApiVersion seems to be used in this conditional logic here https://github.com/OHDSI/ROhdsiWebApi/blob/90340f066ea350b7eb5fdcf184961d79164ecd48/R/CohortDefinition.R#L322
Removed those extraneous lines
Running
OhdsiRTools::checkUsagePackage("ROhdsiWebApi")
generates the following messages (in thedevelop
branch):Does anyone have an idea why these variables are created? Can we just remove those lines?