How to fix save.ffdf on remote server

180 views Asked by At

I can't save.ffdf or move.ffdf. Also, the deprecated ffdfsave is broken.

require(ff);require(ffbase)
x <- data.frame(matrix(rnorm(5*5),ncol=5))
x <- as.ffdf(x)
save.ffdf(x,getwd())

I will get the following error:

Error infilename<-.ff(tmp, value = "/home/... Deleted .../path$X0.0.ff") : ff file rename from '/tmp/RtmpasUciV/ffdf346c5f0daaea.ff' to '/home/... Deleted .../path$X0.0.ff' failed

The only thing that will work is:

require(ff);require(ffbase)
x <- data.frame(matrix(rnorm(5*5),ncol=5))
x <- as.ffdf(x)
save.ffdf(x,tempfile())

Note that when I call this on my local terminal it works. It's just when I try this on a remote server it does not work.

I will also get the error underneath the above error:

In addition: Warning message:
In file.rename(oldnam, value) :
cannot rename file '/tmp/RtmpasUciV/ffdf346c5f0daaea.ff' to '/home/... Deleted .../path$X0.0.ff', reason 'Invalid cross-device link'
0

There are 0 answers