How do I increase font size in RStudio Help pane?

2019-04-08 20:06发布

问题:

I use glasses for presbyopia, and can read all other panes, but often have to open R for help, because of its bigger font size, although I find it inconvenient.

I haven't found any answer in support.rstudio.com ; somebody else asked this same question in 2014.

I am using a MacBook Air with macOS Sierra 10.12.1, RStudio 1.0.44 and R 3.3.2

Thanks!

回答1:

Open "...\RStudio\resources\R.css" file in your RStudio installation folder with a text editor. In the beginning of the file you will see:

body, td {
   font-family: sans-serif;
   font-size: 10pt;
}

That is the setting you are looking for. Change font-size to anything you want.



回答2:

I don't think you can specifically resize the help window font size in the way you can with the other windows. You can resize the whole of RStudio using View -> Zoom In or else Tools -> Global Options -> Appearance and change the Zoom there. Both of these will resize everything in R Studio so you may want to readjust your font size afterwards if you'd previously increased it.



标签: rstudio