R:如何处理内存限制
我正在尝试处理R中的内存限制问题。我正在运行将生成每月数据输出的代码。一切都很好,R按预期保存在计算机中的所有每月CSV数据,但似乎已冻结了控制台(尽管代码完全运行)。当我重新启动它时,它没有按预期启动,我必须擦拭所有内容并重新安装Windows。我下载了R(版本4.2.1)的新版本,并且由于内存限制,我的代码不再运行。我在下面收到错误消息。
错误:无法分配大小44.2 GB的向量,
我尝试像以前一样尝试使用memory.limit()增加内存,但似乎不再受R的支持( memory.limit()bug:“ memory.limit()不再支持”。增加内存)。
如何处理?
I am trying to deal with issues of memory limitation in R. I was running a code that would generate monthly data output. It was all going fine, R saved all monthly csv data in the computer as expected but seemed the have the console frozen (although the code ran entirely). When I restarted it, it did not launch as expected, I had to wipe everything and reinstall windows. I downloaded the new version of R (version 4.2.1) and my code no longer runs because of memory limitation. I get the error message below.
Error: cannot allocate vector of size 44.2 Gb
I tried increasing the memory with memory.limit() as I did before but it seems like it is no longer supported by R (memory.limit() bug: "memory.limit() is not longer supported". Increasing memory).
How to deal with this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论