Michael Friendly
2010-May-27 13:35 UTC
[R] Rprofile: distinguish between Rgui, Rterm, JGR?
[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? -- Michael Friendly Email: friendly AT yorku DOT ca Professor, Psychology Dept. York University Voice: 416 736-5115 x66249 Fax: 416 736-5814 4700 Keele Street Web: http://www.datavis.ca Toronto, ONT M3J 1P3 CANADA
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 there. Duncan Murdoch