Is it possible to set the console font and font size, as I would with “Edit->GUI preferences”, programmatically? How would a function for this look like? I am on windows.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On Windows (at least), the
$R_HOME/etc/Rconsoleconfig file sets many optional parameters for the console and pager. Here’s the section that you could hand-edit to change the default font and font size:To change the values from the command line of an active R session, you could use the
loadRconsole()function. It reads in a text file containing directives of the form shown above, which will overwrite the values read fromRconsolewhen R was launched. Here’s an example: