ffbase icon indicating copy to clipboard operation
ffbase copied to clipboard

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

Open phowerter opened this issue 10 years ago • 1 comments

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

phowerter avatar Dec 18 '15 05:12 phowerter

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

jwijffels avatar Mar 25 '16 09:03 jwijffels