OHDSI / Andromeda

AsynchroNous Disk-based Representation of MassivE DAta: An R package aimed at replacing ff for storing large data objects.
https://ohdsi.github.io/Andromeda/
11 stars 9 forks source link

saveAndromeda doesn't respect andromedaTempFolder #58

Closed egillax closed 7 months ago

egillax commented 10 months ago

When maintainConnection is TRUE it makes a copy of the andromeda object when saving. This copy is not made into the andromedaTempFolder but rather the regular Rtmp folder. This is causing me issues on a system where I have a relatively small C drive for the operating system and a bigger one for the data and I'm extracting huge cohorts and specifying the andromedaTemp folder on the big drive.

I believe it should be very simple to fix. Add tempdir= .getAndromedaTempFolder() to all calls to tempfile in saveAndromeda function.

I'm happy to make a PR for this.