“尚不支持长向量" Rmd中出现错误,但R脚本中没有 [英] "long vectors not supported yet" error in Rmd but not in R Script

查看:87
本文介绍了“尚不支持长向量" Rmd中出现错误,但R脚本中没有的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用R 3.1和RStudio 0.99操作矩阵.

I am operating matrices with R 3.1 and RStudio 0.99.

我有我的R脚本,使用cmd + enter可以正常工作.

I have my R Script and with cmd+enter it works without problem.

我创建了一个用于报告的Rmd,但出现此错误

I created an Rmd for reporting but I have this error

Error in lazyLoadDBinsertVariable(vars[i], from, datafile, ascii, compress,  : 
  long vectors not supported yet: ../../../../R-3.3.1/src/main/connections.c:5600
Calls: <Anonymous> ... <Anonymous> -> <Anonymous> -> lazyLoadDBinsertVariable
Execution halted

有办法绕过该错误吗?

这似乎是 R中的大型矩阵的副本:尚不支持长向量

但是区别在于,这种情况仅在尝试创建Rmd时发生,而在其他情况下则不会发生

but the difference is that this only happens when trying to create an Rmd, not in any other case

推荐答案

我今天也遇到了这个问题,并通过在.Rmd的安装程序块中使用cache.lazy = FALSE对其进行了修复.

I also ran into this today, and fixed it by using cache.lazy = FALSE in the setup chunk in my .Rmd.

所以我的R Markdown文件的第一个块中的内容如下:

So what is inside of the first chunk in my R Markdown file looks like this:

library(knitr)
knitr::opts_chunk$set(cache = TRUE, warning = FALSE, 
                      message = FALSE, cache.lazy = FALSE)

这篇关于“尚不支持长向量" Rmd中出现错误,但R脚本中没有的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆