我试图创建一些大型ff对象。根据{{3}},这不应该是一个问题:
ff <- ff(3, dim=c(10000, 4000, 70), filename="test1.ff", vmode="single")
这给了我一些有用的错误:
Error in ff(3, dim = c(10000, 4000, 70), filename = "test1.ff", vmode = "single") :
(converted from warning) NAs introduced by coercion
1: ff(3, dim = c(10000, 4000, 70), filename = "test1.ff", vmode = "single")
2: .signalSimpleWarning("NAs introduced by coercion", quote(ff(3, dim = c(10000, 4000, 70), filename = "test1.ff", vmode = "single")))
3: withRestarts({
.Internal(.signalCondition(simpleWarning(msg, call), msg, call))
.Internal(.dfltWarn(msg, call))
}, muffleWarning = function() NULL)
4: withOneRestart(expr, restarts[[1]])
5: doWithOneRestart(return(expr), restart)
创建一个较小的一个,效果很好:
ff <- ff(3, dim=c(10000, 3000, 70), filename="test1.ff", vmode="single")
我错过了什么吗?是否对数组的大小(向量的长度)有限制?