这个错误是什么意思"使用tabplot包时if(any(B <1))停止("B太小")的错误"

mql*_*ner 6 r ff

我找到了tabplot包,可视化大数据库.我使用下面的代码运行它,但我在不同的数据帧上得到此错误:

"Error in if (any(B < 1)) stop("B too small") : 
  missing value where TRUE/FALSE needed
In addition: Warning message:
In bbatch(n, as.integer(BATCHBYTES/theobytes)) : NAs introduced by coercion"
Run Code Online (Sandbox Code Playgroud)

这是一个例子:

dat <- read.table(text = " birds    wolfs     snakes
                     3        9         7
                     3        8         4
                     1        2         8
                     1        2         3
                     1        8         3
                     6        1         2
                     6        7         1
                     6        1         5
                     5        9         7
                     3        8         7
                     4        2         7
                     1        2         3
                     7        6         3
                     6        1         1
                     6        3         9
                     6        1         1   ",header = TRUE)
install.packages("tabplot")
package ‘ff’ successfully unpacked and MD5 sums checked
package ‘bit’ successfully unpacked and MD5 sums checked
package ‘fastmatch’ successfully unpacked and MD5 sums checked
package ‘ffbase’ successfully unpacked and MD5 sums checked
package ‘tabplot’ successfully unpacked and MD5 sums checked
library("tabplot", lib.loc="~/R/win-library/3.1")
 tab <- tableplot(dat, plot = FALSE) ## The tabplot  command
Error in if (any(B < 1)) stop("B too small") : 
  missing value where TRUE/FALSE needed
In addition: Warning message:
In bbatch(n, as.integer(BATCHBYTES/theobytes)) : NAs introduced by coercion
Run Code Online (Sandbox Code Playgroud)

任何想法如何克服这个问题?

更新 - 我使用另一台计算机,它工作正常.两台计算机都在Windows 64位上,但在我得到它的计算机上操作系统是Win7专业版和在计算机上有错误操作系统是WIN SERVER 2013

Mat*_*att 2

根据schuemie的评论,此错误与 所需的内存量有关ffdfdlpy,并且可以通过每个会话运行来修复

options(ffmaxbytes = min(getOption("ffmaxbytes"),.Machine$integer.max * 12))

将允许这个工作。

我可以确认这适用于sessionInfo()

R version 3.2.4 (2016-03-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1