我正在上Rstudio项目和一些有线已成为发生输出错误到控制台:每次我写东西到一个脚本Rstudio自动写入以下错误到控制台:Rstudio在编辑脚本
Error in rep.int(vectorNames[i], length(vector[[i]])) :
unimplemented type 'NULL' in 'rep3'
并且光标下方出现一个标签:“R代码执行错误”。 Appart form this visual错误,一切工作正常。有没有人有同样的问题?
我正在上Rstudio项目和一些有线已成为发生输出错误到控制台:每次我写东西到一个脚本Rstudio自动写入以下错误到控制台:Rstudio在编辑脚本
Error in rep.int(vectorNames[i], length(vector[[i]])) :
unimplemented type 'NULL' in 'rep3'
并且光标下方出现一个标签:“R代码执行错误”。 Appart form this visual错误,一切工作正常。有没有人有同样的问题?
我刚刚经历过这个问题。在我看来,我想它必须与包中的NAMESPACE文件相关。
我可以在R Studio support site上看到关于此主题的讨论。从源头
引用上面提到的:
There are two times when we run the code that could be emitting this error:
- When attempting to retrieve completions from the package's NAMESPACE file,
- When attempting to retrieve completions for native routines (e.g. for within a '.Call()' call).
Can you recall if you had been editing the package's NAMESPACE file before seeing this error? Alternatively, have you been using 'devtools::load_all()' or other similar machinery?
,并明确回答你的问题: 是的!我有同样的问题!(该死!:))
以后编辑:
我已经通过关闭该项目,并再次重新打开它摆脱了问题。
有没有机会提供更多信息?如果可能的话,一个可重复的例子(使用代码+使RStudio发出这些错误的动作)将会非常有用。 –