错误:withCallingHandlers使R崩溃 [英] Error: withCallingHandlers crashing R
问题描述
我已经使用基于plyr的函数summarySE
和ddply
几个月了,没有任何问题.今天,当我在R中运行极其基本的例程时,出现了一些错误消息并使R崩溃.
I've been using plyr-based function summarySE
and ddply
for several months without any problem. Today when I ran my extremely basic routine in R some error message showed up and made R crash.
这是一个示例代码,以及我在R崩溃前得到的错误:
Here is an example code and the error I get before R crashes:
install.packages("plyr")
library(plyr)
results<-data.frame(Depth=rbind("Surface","Bottom"),DO=(runif(10,4,6)))
ddply(results, .(Depth), summarise,
mean = round(mean(DO), 2),
sd = round(sd(DO), 2),
min = min(DO),
max = max(DO))
Error in withCallingHandlers(tryCatch(evalq((function (i):
object '.rcpp_warning_recorder' not found
我读到withCallingHandlers
是处理错误消息的函数,在ddply使用期间它不应该给我任何错误.有谁知道如何修理它?
我尝试重新安装plyr
,但是在此问题上没有成功.
它已经工作了14个小时,所以这个错误对我来说根本没有任何意义.
谢谢!
I read that withCallingHandlers
is a function to deal with error messages, it shouldn't give me any error during ddply usage. Does anyone know how to fix it?
I have tried reinstalling plyr
but had no success on this issue.
It was working 14 hours ago, therefore this error makes no sense at all to me...
Thanks!
我也曾尝试根据建议从此处从源代码安装plyr
,但效果不佳,我仍然收到相同的错误消息.
I have also tried to install plyr
from the source as suggested here but it didn't work as well, I still get the same error message.
推荐答案
我更新了软件包"Rcpp",现在它对我有用. install.packages("Rcpp")
I updated the package "Rcpp" and now it is working for me. install.packages("Rcpp")
这篇关于错误:withCallingHandlers使R崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!