ohdsi-studies / PioneerWatchfulWaiting

This study is part of the joint PIONEER - EHDEN - OHDSI studyathon in March 2021, and aims to advance understanding of clinical management and outcomes of watchful waiting in prostate cancer.
Apache License 2.0
7 stars 18 forks source link

Error while doing runStudy #43

Closed rfherrerac closed 3 years ago

rfherrerac commented 3 years ago

After doing the cohort diagnostics, and then doing runStudy I got this error: Error: Can't subset columns that don't exist. x Column name doesn't exist.

<error/vctrs_error_subscript_oob> Can't subset columns that don't exist. x Column name doesn't exist. Backtrace: █

  1. └─PioneerWatchfulWaiting::runStudy(...)
  2. └─PioneerWatchfulWaiting:::loadCohortsForExportFromPackage(cohortIds = counts$cohortId)
  3. ├─base::rbind(cohorts, targetStrataXref[cols])
  4. │ └─base::rbind(deparse.level, ...)
  5. ├─targetStrataXref[cols]
  6. ├─readr:::[.spec_tbl_df(targetStrataXref, cols)
  7. ├─base::NextMethod([)
  8. └─tibble:::[.tbl_df(targetStrataXref, cols)
  9. └─tibble:::vectbl_as_col_location(...)
    1. ├─tibble:::subclass_col_index_errors(...)
    2. │ └─base::withCallingHandlers(...)
    3. └─vctrs::vec_as_location(j, n, names)
    4. └─(function () ...
    5. └─vctrs:::stop_subscript_oob(...)
    6. └─vctrs:::stop_subscript(...)
rfherrerac commented 3 years ago

PioneerWatchfulWaiting.txt

marek05 commented 3 years ago

I got exactly the same error with the same error output on our dataset.

MaximMoinat commented 3 years ago

Thanks @rfherrerac and @marek05 for reporting. It seems to be a different part of the code than we previously looked at, same function loadCohortsForExportFromPackage though that throws the error.

I will be working on a fix.

scossin commented 3 years ago

I had the same error, I pulled the fix of @MaximMoinat and it worked !