1

I'm trying to create some large ff objects. According to the documentation, this shouldn't be an issue:

ff <- ff(3, dim=c(10000, 4000, 70), filename="test1.ff", vmode="single")

This gives me the little helpful error:

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)

Creating a smaller one, works well:

ff <- ff(3, dim=c(10000, 3000, 70), filename="test1.ff", vmode="single")

Am I missing something ? Is there a limitation on size of the array (length of vector) ?

Minnow
  • 1,733
  • 2
  • 26
  • 52
  • For starters, I wouldn't call your object `ff`. `ff` is the function you're trying to call, so you will at the least get some unexpected results by renaming a function to an ff object. – Minnow Dec 15 '15 at 00:08
  • 10000*4000*70 > .Machine$integer.max, you can not create vector of length > 2.1 billion –  Dec 21 '15 at 15:10

0 Answers0