I'm using the ff
package in RStudio, which is running on a Windows server in my department. I'm using it to work with some large datasets, which I'm also storing on a network drive. I have confirmed that I have full read/write access to the drive in Windows, but when I use any functions in the ff
package that directly writes a flat file to disk (such as ff()
or as.ff()
), I get a "no diskspace" error.
However, if I write the data to another drive and then move it over to the network drive using pattern()
it works fine. I only have this issue with the ff
package. Other functions from base
such as save()
and write.csv()
work fine. Is there a permissions issue that is specific to the ff
package? I've included a minimal working example below.
> library(ff)
>
> # Set ff temporary directory to Network Drive
> options(fftempdir = "\\\\fs01/analysis/tmp/")
>
> test <- 1:10
> test.ff <- ff(test)
Error in ff(test) : no diskspace
>
> # But if I write it to another drive and then move it over, it works fine
>
> # Set the ff temporary directory to another drive
> options(fftempdir = "R:/analysis/tmp/")
> test.ff <- ff(test)
>
> physical(test.ff)$filename
[1] "R:/analysis/tmp/ff32081b6926e5.ff"
>
> pattern(test.ff) <- "\\\\fs01/analysis/tmp/"
>
> physical(test.ff)$filename
[1] "\\\\fs01/analysis/tmp/3208208747f3.ff"
And here is the software version information for R:
R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)