OHDSI / CohortGenerator

Cohort Generation for the OMOP Common Data Model
https://ohdsi.github.io/CohortGenerator/
12 stars 10 forks source link

Error returned by getCohortDefinitionSet: '' does not exist in current working directory #56

Closed atsoham closed 2 years ago

atsoham commented 2 years ago

Hi, I am trying to execute a PLE (Population Level Estimation) study package generated by Hydra (0.3.0). When I try to run the execute function built in CodeToRun.R, I get this error. The traceback point to getCohortDefinitionSet for returning the error. I believe that the function is trying to locate the Cohorts.csv file under inst/ but is unable to find it (even though it is present and has the details of the cohorts). Has anyone encountered this before / knows where the issue is coming from and how to resolve it?

image ^ Error message ^

image ^ Traceback ^

image ^ Cohort.csv file ^

image ^ Working directory is correct ^

anthonysena commented 2 years ago

Hi - have you built/installed the package prior to running it?

atsoham commented 2 years ago

Hey @anthonysena,

Thanks for the tip! I was building and installing the package with devtools but on closer inspection, I realised that I was doing it incorrectly. I have corrected my commands and the error issue is resolved.