最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

r - RStudio displaying outputs in red text, difficult to distinguish from errors - Stack Overflow

programmeradmin6浏览0评论

I see some output is being displayed in red text, even though there are no errors or warnings. This makes it very difficult to distinguish between actual errors/warnings and normal output.

The issue persists across different R scripts, and I’m not sure if it’s a configuration problem or a bug.

RStudio 2024.12.1+563 "Kousa Dogwood" Release (27771613951643d8987af2b2fb0c752081a3a853, 2025-02-02) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.12.1+563 Chrome/126.0.6478.234 Electron/31.7.7 Safari/537.36, Quarto 1.5.57

R version 4.4.3 (2025-02-28 ucrt)

I see some output is being displayed in red text, even though there are no errors or warnings. This makes it very difficult to distinguish between actual errors/warnings and normal output.

The issue persists across different R scripts, and I’m not sure if it’s a configuration problem or a bug.

RStudio 2024.12.1+563 "Kousa Dogwood" Release (27771613951643d8987af2b2fb0c752081a3a853, 2025-02-02) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.12.1+563 Chrome/126.0.6478.234 Electron/31.7.7 Safari/537.36, Quarto 1.5.57

R version 4.4.3 (2025-02-28 ucrt)

Share Improve this question asked Mar 23 at 14:33 丶 Limeー来夢 丶丶 Limeー来夢 丶 9771 gold badge16 silver badges38 bronze badges 0
Add a comment  | 

1 Answer 1

Reset to default 2

tl;dr you can make none of the output red, but in RStudio (so far) you can't turn off red for messages (which is what you're seeing here) while still printing warnings and errors in red ...

This has been discussed extensively here and here; lots of people agreed that having messages (such as those produced by install.packages()) appear in the same red text that denotes warnings and errors is a bad idea, but the issue doesn't seem to have been touched in a few years. The one advance is that there is now an option to turn off the colours for all messages, warnings, and errors (see here: go to Tools > Global options > Console and unclick the "Different color for error or message output" box)

发布评论

评论列表(0)

  1. 暂无评论