RStudio Console overrides R's defaults: Is it documented somewhere?

The RStudio Console overrides some of R's built-in default settings. For example, in the RStudio Console, we get:

> getOption("menu.graphics")
[1] FALSE

whereas in a plain R session (incl. from the RStudio Terminal), we get:

> getOption("menu.graphics")
[1] TRUE

I'm looking for more details and pointers to be used in my startup package. Is there an RStudio document/help page that I can reference when describing this behavior and that lists the differences? Is this taking place in the rstudioapi package, or elsewhere? Is it possible to programmatically infer the RStudio defaults from outside RStudio?

We don't document these publicly, but generally all of the R options that RStudio sets are outlined here: https://github.com/rstudio/rstudio/blob/master/src/cpp/r/R/Options.R

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.