I had a CNSet
object created by the crlmm
package that was stored using ff
package.
I saved it as an RData
file (using the save
function, not ffsave
). And then I had to move my ff
files to another location. Then I tried to load the object using the load
function. But when I accessed a part of the object, I'm getting an error that the a ff
file in the original location couldn't be found.
I set the new location using the ldPath
function, but it's still looking in the old path.
Example:
library(ff)
ldPath('/new_location')
load('object.RData')
summary(g)
#Works, print:
#Length Class Mode
#1 CNSet S4
calls(g)[1]
#Raises the next error:
opening ff /old/location/calld49920a2df79.ff
Error: file.access(filename, 0) == 0 is not TRUE
physical(x)
NULL
Any help will be appreciated.