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 13 forks source link

saveAndromeda crashes R session when tilde expansion is used or path does not exist or is not writable #4

Closed ablack3 closed 3 years ago

ablack3 commented 4 years ago

Here are a few examples of programs that crash R.

# use tilde expansion (tested on windows and linux)
library(Andromeda)
bigData <- andromeda(cars = cars)
saveAndromeda(bigData, "~/bigData.zip")
# Crash
# pass a path that does not exist (tested on windows)
library(Andromeda)
bigData <- andromeda(cars = cars)
saveAndromeda(bigData, "C:/some/nonexistant/path/bigData.zip")
# Crash
# use a path that the user does not have write access to (tested on linux)
library(Andromeda)
bigData <- andromeda(cars = cars)
saveAndromeda(bigData, "/home/otheruser/bigData.zip")
# Crash

This affects featureExtraction as well - https://github.com/OHDSI/FeatureExtraction/issues/103