rsession(9608) RStudio 中的 MallocStackLogging 错误

Qui*_*ten 7 r rstudio

输入时突然收到以下警告RStudio

rsession(9608) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
Run Code Online (Sandbox Code Playgroud)

每次当我在 RStudio 中输入时,都会出现警告,并显示不同的会话,如下所示:

rsession(9608) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9640) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9641) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9652) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9653) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9655) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9656) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9659) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9661) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9700) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
rsession(9701) MallocStackLogging: can't turn off malloc stack logging because it was not enabled.
Run Code Online (Sandbox Code Playgroud)

此警告存在问题,但我找不到与 相关的任何内容rstudio。所以,我想知道是否有人知道这个错误是什么以及为什么会发生?


请注意:我使用的是配备 Intel Core i5 2020 的 MacBook Pro。

n.g*_*ies 1

升级到 macOS Sonoma (14.2.1)、运行 R 4.3.1 并使用 gcc 版本 13.1.0 (Homebrew) 作为我的 C/C++ 编译器后,我遇到了同样的问题。

我能够通过升级到 R 4.3.2 并重新安装所有 R 包(遵循此处“默认库”的方法)来修复它。

在这样做时,我专门从源代码安装了data.tableRcppRcppEigen和 ,RcppArmadillo例如:

install.packages(c("data.table", "Rcpp", "RcppEigen", "RcppArmadillo"), type = "source") 
Run Code Online (Sandbox Code Playgroud)

因为这是我通常在全新 R 安装时所做的事情。然而,我怀疑这是否是关键的一步。

我不确定这些步骤中哪一个是关键的:

  • 重新安装R;
  • 升级到4.3.2;
  • 或重新安装所有软件包;

但这种组合似乎已经解决了我的问题。