让R控制台突出显示红色的错误 [英] get R console to highlight errors in red

查看:224
本文介绍了让R控制台突出显示红色的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很多时候我将评估代码粘贴到R控制台中。有时,我粘贴的语句中间会出现错误,我想念它们,因为它们与屏幕上的其余内容融合在一起。有没有办法通过颜色编码来脱颖而出?

解决方案

在linux或mac上,你可以简单地加载 colorout 包,您的错误将显示为红色。




A lot of the time I paste code for evaluation into the R console. Sometimes errors occur in the middle of the statements I pasted and I miss them because they blend in with the rest of the stuff on the screen. Is there a way to make them stand out via color coding?

解决方案

On linux or mac, you can simply load the colorout package and your errors will show up in red.

这篇关于让R控制台突出显示红色的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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