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?