[R] R versions and PostScript files

(Ted Harding) ted.harding at wlandres.net
Fri Jul 22 11:27:40 CEST 2011


On 22-Jul-11 09:20:23, peter dalgaard wrote:
> 
> On Jul 22, 2011, at 11:08 , (Ted Harding) wrote:
> 
>> On 22-Jul-11 08:02:40, peter dalgaard wrote:
>>> [much snip]
>>> 
>>> The .ps.prolog is not in C code but in an R character vector.
>> 
>> While '?postscript' says (uder "Details:"):
>> 
>> 
>>  Most of the PostScript prologue used is taken from the
>>  R character vector '.ps.prolog'.  This is marked in the
>>  output, and can be changed by changing that vector.
>>  (This is only advisable for PostScript experts: the
>>  standard version is in ?namespace:grDevices?.)
>> 
>> I have not been able to get my hands on that vector in an
>> R session. What is the incantation for locating it, please?
> 
> grDevices:::.ps.prolog
> 
> as in:
> 
> .ps.prolog <- grDevices:::.ps.prolog
> .ps.prolog[39] <- "/setrgb { setrgbcolor } def"
> postscript()
> image(volcano)
> dev.off()
> 
> -- 
> Peter Dalgaard

Ah, thanks! I wasn't using sufficiently many ":"'s!
Apologies for the fumble.
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <ted.harding at wlandres.net>
Fax-to-email: +44 (0)870 094 0861
Date: 22-Jul-11                                       Time: 10:27:37
------------------------------ XFMail ------------------------------



More information about the R-help mailing list