oxford-pharmacoepi / MegaStudy

4 stars 2 forks source link

DUS script - DEMOGRAPHICS INCIDENT PATIENTS error "result_type" column does not exist (summariseCharacteristics) #55

Closed inesreinecke closed 5 months ago

inesreinecke commented 6 months ago

I receive the following error during characterisation of demographics of incident patients.

Error in dplyr::select(): ! Can't select columns that don't exist. ✖ Column result_type doesn't exist.

Backtrace: ▆

  1. ├─inc_demographics_interim %>% ...
  2. ├─PatientProfiles::summariseCharacteristics(...)
  3. │ └─... %>% dplyr::select(!"result_type")
  4. ├─dplyr::select(., !"result_type")
  5. ├─dplyr:::select.data.frame(., !"result_type")
  6. │ └─tidyselect::eval_select(expr(c(...)), data = .data, error_call = error_call)
  7. │ └─tidyselect:::eval_select_impl(...)
  8. │ ├─tidyselect:::with_subscript_errors(...)
  9. │ │ └─base::withCallingHandlers(...)
    1. │ └─tidyselect:::vars_select_eval(...)
    2. │ └─tidyselect:::walk_data_tree(expr, data_mask, context_mask)
    3. │ └─tidyselect:::eval_c(expr, data_mask, context_mask)
    4. │ └─tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
    5. │ └─tidyselect:::walk_data_tree(new, data_mask, context_mask)
    6. │ └─tidyselect:::eval_bang(expr, data_mask, context_mask)
    7. │ └─tidyselect:::walk_data_tree(expr[[2]], data_mask, context_mask)
    8. │ └─tidyselect:::as_indices_sel_impl(...)
    9. │ └─tidyselect:::as_indices_impl(...)
    10. │ └─tidyselect:::chr_as_locations(x, vars, call = call, arg = arg)
    11. │ └─vctrs::vec_as_location(...)
    12. └─vctrs (local) <fn>()
    13. └─vctrs:::stop_subscript_oob(...)
    14. └─vctrs:::stop_subscript(...)
    15. └─rlang::abort(...)
tiozab commented 6 months ago

@inesreinecke can you give me the following please: packageVersion("CDMConnector") packageVersion("omopgenerics") packageVersion("DrugUtilisation") packageVersion("PatientProfiles")