The cohort in question is pretty large, and in this line the cohort is collected and downloaded to R, throwing the following error:
Error in `purrr::map()`:
ℹ In index: 5.
Caused by error in `dplyr::collect()`:
! Failed to collect lazy table.
Caused by error:
! cannot allocate vector of size 12.5 Gb
Is the collect() necessary? At least in my use case, the program runs fine without the collect(), leaving a lazy table that PatientProfiles::summariseResult() handles just fine.
The cohort in question is pretty large, and in this line the cohort is collected and downloaded to R, throwing the following error:
Is the
collect()necessary? At least in my use case, the program runs fine without thecollect(), leaving a lazy table thatPatientProfiles::summariseResult()handles just fine.