在R控制台中指定字体?多平台解决方案? [英] Specifying the font in an R console - multiplatform solutions?
问题描述
这是相当平凡的R问题,但我想指定在我的R控制台中的字体。在Windows中可以轻松做到 - John Cook有一个很好的小写的。
This is fairly mundane as R questions go, but I would like to specify the font in my R console. It's easy enough to do in Windows - John Cook has an excellent little writeup on that.
但是,这是特定于Windows R GUI。我不能找到一种方法(至少从R内)RStudio,Linux等。有没有一个全球,平台无关的解决方案?
However, that is specific for the Windows R GUI. I'm not able to find a way to do this (at least from within R) on RStudio, Linux, etc. Is there a global, platform-agnostic solution? If not, what would need to be wrapped to make this feasible given per-platform idiosyncracies?
还是这是不可行的?
请注意,我对字体系列感兴趣,而不是字体大小,尽管欢迎使用字体大小建议。
Note that I'm interested in the font family, rather than the font size, though font size suggestions are welcome.
编辑:我计划应用此字体在程序内,如果可能的话。因为R可以调用shell,所以我很高兴一个两遍的方法,首先配置外部文件,为后续的R调用做准备,如果必要的话。
I plan to apply this inside a program, if possible. Since R can make calls to the shell, I am happy with a two-pass method that first configures external files in preparation for a subsequent invocation of R, if that is necessary.
推荐答案
不,每个前端到R都负责控制台显示给用户的方式。这将是固有的平台和前端具体。
No, each of the front-ends to R are responsible for the way that the console is displayed to the user. This will be inherently platform and front-end specific.
这篇关于在R控制台中指定字体?多平台解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!