[R] Rprofile: distinguish between Rgui, Rterm, JGR?
murdoch.duncan at gmail.com
Thu May 27 20:41:33 CEST 2010
Michael Friendly wrote:
> [Environment: Win XP, R 2.10.1]
> In my Rprofile I have startup code to do various things, intended for
> when I use the Rgui console.
> Some of these are causing problems in JGR now that I've installed it.
> How can I test for R
> running with Rgui to do some of these things only there?
Look at .Platform$GUI. It shows "Rgui" or "RTerm" for those two. I
don't have JGR installed, but I'd guess it shows something differently
More information about the R-help