windows - Set font and font size in R Console programmatically? -



windows - Set font and font size in R Console programmatically? -

is possible set console font , font size, "edit->gui preferences", programmatically? how function like? on windows.

on windows (at least), $r_home/etc/rconsole config file sets many optional parameters console , pager. here's section hand-edit alter default font , font size:

## font. # please utilize fixed width font. # if font=fixedfont scheme fixed font used; in case # points , style ignored. if font begins "tt ", # true type fonts searched for. font = tt courier new points = 10 style = normal # style can normal, bold, italic

to alter values command line of active r session, utilize loadrconsole() function. reads in text file containing directives of form shown above, overwrite values read rconsole when r launched. here's example:

temp <- tempfile() cat("points = 13\n", file = temp) cat("style = italic\n", file = temp, append = true) loadrconsole(file = temp) ## , then, reset defaults: loadrconsole(file = file.path(r.home(), "etc/rconsole"))

windows r user-interface console

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

r - url in CRAN extension manual -

asp.net - .NET Control.ID property inconsistency -