LoginSignup
1
1

More than 5 years have passed since last update.

knitr で lazy load error が出たら cache.lazy=FALSE #rstatsj

Last updated at Posted at 2016-09-08

knitr で巨大なサイズのオブジェクトをキャッシュしようとしたら、こういうエラーが出た。

Error in lazyLoadDBinsertVariable(vars[i], from, datafile, ascii, compress, :
long vectors not supported yet: connections.c:5540
Calls: ... -> -> lazyLoadDBinsertVariable
Execution halted

これは R 本体のバグに起因するものらしく、knitr には回避策として cache.lazy オプションが用意されているのでこれを FALSE にすれば良い。

R
```{r cache=TRUE, cache.lazy=FALSE}
big_data <- read.table("..........")
``` 

参考

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1