RStudio - Markdown 崩溃:(函数(srcref)中的错误:'eval' 中的未实现类型(29) [英] RStudio - Markdown Crash: Error in (function (srcref) : unimplemented type (29) in 'eval'

查看:47
本文介绍了RStudio - Markdown 崩溃:(函数(srcref)中的错误:'eval' 中的未实现类型(29)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 RStudio 因以下错误多次崩溃:

My RStudio crashed a number of times with the following error:

(function (srcref) 中的错误:'eval' 中未实现的类型 (29)

发生这种情况的相似之处是:

The similarities where this has happened were:

  • 我在 Markdown Notebook 中工作
  • 我相信当我选择运行上面的所有块"命令时总是如此
  • 我之前在当前会话中运行了一些代码块(所以不是在开始工作时)

错误总是在 RStudio 会话中止之前显示.我丢失了环境中的所有数据和变量,但大部分代码似乎可以恢复.

The error was always displayed just before the RStudio session aborted. I lose all my data and variables in the environment, but most of the code seems to be recoverable.

有人知道可能导致这种情况的原因或如何处理吗?

Anyone with an idea of what might cause this or how to deal with it?

这里是我的 SessionInfo

R version 4.0.0 (2020-04-24)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United Kingdom.1252    LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C                            LC_TIME=English_United Kingdom.1252    

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

other attached packages:
 [1] data.table_1.12.8 forcats_0.5.0     stringr_1.4.0     dplyr_0.8.5       purrr_0.3.4       readr_1.3.1      
 [7] tidyr_1.0.2       tibble_3.0.0      ggplot2_3.3.0     tidyverse_1.3.0  

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.4.6     cellranger_1.1.0 pillar_1.4.3     compiler_4.0.0   dbplyr_1.4.3     tools_4.0.0      packrat_0.5.0   
 [8] lubridate_1.7.8  jsonlite_1.6.1   lifecycle_0.2.0  nlme_3.1-147     gtable_0.3.0     lattice_0.20-41  pkgconfig_2.0.3 
[15] rlang_0.4.5      reprex_0.3.0     cli_2.0.2        DBI_1.1.0        rstudioapi_0.11  haven_2.2.0      xfun_0.13       
[22] withr_2.2.0      xml2_1.3.1       httr_1.4.1       knitr_1.28       fs_1.4.1         hms_0.5.3        generics_0.0.2  
[29] vctrs_0.2.4      grid_4.0.0       tidyselect_1.0.0 glue_1.4.0       R6_2.4.1         fansi_0.4.1      readxl_1.3.1    
[36] modelr_0.1.6     magrittr_1.5     backports_1.1.6  scales_1.1.0     ellipsis_0.3.0   rvest_0.3.5      assertthat_0.2.1
[43] colorspace_1.4-1 stringi_1.4.6    munsell_0.5.0    broom_0.5.6      crayon_1.3.4    

很遗憾,我不能给你一个可重现的例子,但这是最后一次发生的截图:

I sadly can't give you a reproducible example, but this is a screenshot of the last time it happened:

下次执行一个相当简单的 ggplot 命令:

And the next time following a fairly simple ggplot command:

推荐答案

您可以尝试更新 Rstudio.

You might try updating Rstudio.

在我更新到 R 的 4.0.0 版后,我开始出现类似的消息.这些错误发生的代码在 R 的早期版本上没有出现问题.我可以使用 Ctrl-Enter 逐行运行代码没有错误,但运行整个块会出现问题.

I had similar messages that started to occur after I updated to version 4.0.0 of R. These errors were occurring with code that presented no problems on previous versions of R. I could run the code line by line with Ctrl-Enter with no error, but running the whole chunk would be a problem.

当我将 Rstudio 从版本 1.1.463 更新到 1.2.5042 时,问题就消失了.

The issue went away when I updated Rstudio from Version 1.1.463 to 1.2.5042.

这篇关于RStudio - Markdown 崩溃:(函数(srcref)中的错误:'eval' 中的未实现类型(29)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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