Skip to content
Prev 1244 / 15075 Next

saving graphs; jpeg(), bitmap()

On Dec 8, 2004, at 10:54 PM, Tiago R Magalhaes wrote:

            
*bangs his head against a wall*
my mistake - it's

Sys.putenv(DISPLAY=":0.0")

in C you can use both setenv and putenv, in csh it's setenv so I mix 
those things up :P

As of Apple's X11 - look in Applications -> Utilities and there should 
be X11. But XDarwin and other X11 are usually mutually exclusive, so I 
doubt that you have Apple's X11. I have no idea why someone would 
install XDarwin instead of Apple's X11 nowadays, it makes no sense to 
me, but maybe someone can explain that.
The "file" is just "gs" - GhostScript is just the name of the program 
is called.
it's what I tried to make you with the Sys.putenv ;)
I'm not sure, but AFAIK the pdf device is independent of X (see ?pdf in 
R).

Cheers,
Simon