Font definition in R console - multi-platform solutions?

This is pretty commonplace, as R questions come up, but I would like to specify the font in my console R. This is easy to do on Windows - John Cook has a great little note on this.

However, this is typical of the graphical interface of Windows R. I cannot find a way to do this (at least from R) on RStudio, Linux, etc. Is there a global, platform agnostic solution? If not, what would you need to wrap to make this possible, given the individual terms for the platform?

Or is this impracticable?

Please note that I am interested in the font family, not the font size, although suggestions for font size are welcome.

Edit: I plan to apply this inside the program, if possible. Since R can make calls to the shell, I am pleased with the two-pass method, which first configures external files in preparation for the next call to R, if necessary.

+5
source share
2 answers

No, each of the interfaces prior to R is responsible for how the console is displayed to the user. It will be inherently a platform and interface.

+5
source

, Gavin : , Linux. , R- Windows . Mac : .

, , , :

  • Windows/default R - . " "
  • Mac - .
  • Linux/default R - ( ?)
  • (Windows, Mac, Linux)/Rstudio - () - . . -
  • Windows/Revolution R -
  • / R -

, , R -, .:) . Rstudio.

+3

All Articles