edwindj / ffbase

Basic (statistical) functionality for R package ff
github.com/edwindj/ffbase/wiki
35 stars 15 forks source link

save.ffdf produces an error " NA were not saved, because not found" if you are using it in a list #49

Open phowerter opened 8 years ago

phowerter commented 8 years ago

Hello, I organize my ffdf files in llists but the ffdf.save function returns and error if I pass it an ffdf object that is within a list. NA were not saved, because not found

here is an example myList <- list(test = 1, test2 = 2) myList$test <- as.ffdf(data.frame(dummy1 = c(1,2), dummy2 = c(1,2))) save.ffdf(myList$test)

This is because of the line: names <- as.character(substitute(list(...)))[-1L]

The thing is, this function actually work in this case. It just return a warning message with an error. Can you figure out a way to get rid of this?

Thanks, Patrick

jwijffels commented 8 years ago

you could write a wrapper around save.ffdf e.g. save.ffdflist and load.ffdflist to do this