R:如何处理内存限制

发布于 2025-02-11 20:38:05 字数 479 浏览 0 评论 0原文

我正在尝试处理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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文