R函数rstudioapi :: getActiveDocumentContext()返回Error:评估嵌套得太深:无限递归/选项(表达式=)?

时间:2016-12-29 21:23:32

标签: r rstudio

我在Windows中执行Rstudio。当我尝试执行函数rstudioapi :: getActiveDocumentContext()时,它返回"错误:评估嵌套太深:无限递归/选项(表达式=)?"

这是我的会话代码:

library(rstudioapi)
rstudioapi::isAvailable()
rstudioapi::getActiveDocumentContext()

控制台输出为:

> library(rstudioapi)
> rstudioapi::isAvailable()
[1] TRUE
> rstudioapi::getActiveDocumentContext()
Error: evaluation nested too deeply: infinite recursion / options expressions=)?
Error during wrapup: evaluation nested too deeply: infinite recursion / options(expressions=)?

这是sessionInfo()输出:

> sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rstudioapi_0.5

loaded via a namespace (and not attached):
[1] rstudio_0.98.1103 tools_3.1.3     

有没有人看到问题并知道解决方案?谢谢!

0 个答案:

没有答案