尝试打印长度超过130K的日期向量时,R意外退出 [英] R exits unexpectedly when trying to print a date vector with length more than 130K

查看:137
本文介绍了尝试打印长度超过130K的日期向量时,R意外退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了以下代码,然后R意外退出:

I have tried the following code, and then R exits unexpectedly:

temp <- rep(as.Date("2009-01-01")+1:365, 365)
print(temp)

任何人以前尝试过这个bug,还是有什么可以做的?

Anyone tried this before, is it a bug, or if there is anything I can do?

我已将R的可用内存从1024M增加到2047M,但是

I have increase the memory available for R from 1024M to 2047M, but the same thing happens.

谢谢。

更新#1

这是我的sessionInfo()

Here's my sessionInfo()

> sessionInfo()
R version 2.11.0 (2010-04-22) 
i386-pc-mingw32 

locale:
[1] LC_COLLATE=Chinese_Hong Kong S.A.R..950  LC_CTYPE=Chinese_Hong Kong S.A.R..950   
[3] LC_MONETARY=Chinese_Hong Kong S.A.R..950 LC_NUMERIC=C                            
[5] LC_TIME=Chinese_Hong Kong S.A.R..950    

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

其实我在尝试做一些格式(foo,%y%M),但它也意外退出 - 对于意外,我的意思是R关闭本身没有任何迹象。再次感谢。

And actually I am trying to do some format(foo, "%y%M"), but it also exit unexpectedly - for "unexpectedly", I mean R closes itself without any signs. Thanks again.

推荐答案

看起来像一个已知错误,修复于2.11.1 。看看 2.11.1更改日志,部分BUG FIXES,第8项

这篇关于尝试打印长度超过130K的日期向量时,R意外退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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