[R] R2.6 + Error saving plots as PDF

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Oct 4 23:02:14 CEST 2007


On Thu, 4 Oct 2007, Prof Brian Ripley wrote:

> Pedro Mardones wrote:
>
>> After installing R 2.6.0 I got the following error when I try to save
>> a plot as PDF or PS from the windows plot:
>> Error: Invalid font type
>> In addition: Warning messages:
>> 1: font family not found in PostScript font database
>> 2: font family not found in PostScript font database
>> However in R 2.5.0 works just fine
>> Any ideas how to make it work again (without having to install the
>> previous version)?
>
> It works if postscript() or pdf() has been used in the session, and also
> if initPSandPDFfonts() is called (so put that in your .Rprofile).

To be specific, grDevices:::initPSandPDFfonts().

> We'll arrange to do this automatically in R-patched.

Done in patch r43083.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list