Jane_Harvill at Baylor.Edu
2007-Nov-06 15:05 UTC
[Rd] Saving Graphics File as .ps or .pdf (PR#10403)
Full_Name: Jane L. Harvill Version: 2.6.0 OS: Microsoft Windows XP Professional, Version 2002, Service Pack 2 Submission from: (NULL) (129.62.21.93) PROBLEM: The ability to save the contents of an R Graphics window as a postscript or PDf file through the drop-down menu (File -> Save As -> Postscript, or File -> Save As -> PDF) results in the error message below being printed to the R Console. ERROR MESSAGE: ----------------------------------------------------------------- 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> >----------------------------------------------------------------- TO RECREATE THE PROBLEM: 1. Using the R Console, create some graph in R; for example, plot(rnorm(100)). 2. Select File -> Save As -> PostScript (or File -> Save As -> PDF). 3. Supply a file name and click the "Save" button. FOUR OTHER RELEVANT NOTES: 1. I checked to see if the same error results when invoking the functions pdf(file=...) or postscript(file=...). No error results, and the content of the output (.ps or .pdf) file produces a duplicate of what appears in the R Graphics window. 2. I checked, but did not see any other bug reports in the system that are relevant to this problem. 3. Before I submitted this R Bug Report, I reinstalled the PostScript fonts, and then reinstalled R Version 2.6.0. This did not change the outcome. 4. This problem did not exist in previous versions of R on any of my computers. It exists on all computers for version 2.6.0 of R.
This has been reported several times before and has been fixed in R-patched some weeks ago. Uwe Ligges Jane_Harvill at Baylor.Edu wrote:> Full_Name: Jane L. Harvill > Version: 2.6.0 > OS: Microsoft Windows XP Professional, Version 2002, Service Pack 2 > Submission from: (NULL) (129.62.21.93) > > > PROBLEM: The ability to save the contents of an R Graphics window as a > postscript or PDf file through the drop-down menu (File -> Save As -> > Postscript, or File -> Save As -> PDF) results in the error message below being > printed to the R Console. > > ERROR MESSAGE: > ----------------------------------------------------------------- > 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 > ----------------------------------------------------------------- > > TO RECREATE THE PROBLEM: > 1. Using the R Console, create some graph in R; for example, plot(rnorm(100)). > 2. Select File -> Save As -> PostScript (or File -> Save As -> PDF). > 3. Supply a file name and click the "Save" button. > > FOUR OTHER RELEVANT NOTES: > 1. I checked to see if the same error results when invoking the functions > pdf(file=...) or postscript(file=...). No error results, and the content of > the output (.ps or .pdf) file produces a duplicate of what appears in the R > Graphics window. > > 2. I checked, but did not see any other bug reports in the system that are > relevant to this problem. > > 3. Before I submitted this R Bug Report, I reinstalled the PostScript fonts, > and then reinstalled R Version 2.6.0. This did not change the outcome. > > 4. This problem did not exist in previous versions of R on any of my computers. > It exists on all computers for version 2.6.0 of R. > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
Simone Giannerini
2007-Nov-06 15:59 UTC
[Rd] Saving Graphics File as .ps or .pdf (PR#10403)
I have experienced the same behaviour (intermittently) on two different WinXP machines. Also savePlot() appears to be affected but not postscript() nor pdf() as you mentioned. On 11/6/07, Jane_Harvill at baylor.edu <Jane_Harvill at baylor.edu> wrote:> Full_Name: Jane L. Harvill > Version: 2.6.0 > OS: Microsoft Windows XP Professional, Version 2002, Service Pack 2 > Submission from: (NULL) (129.62.21.93) > > > PROBLEM: The ability to save the contents of an R Graphics window as a > postscript or PDf file through the drop-down menu (File -> Save As -> > Postscript, or File -> Save As -> PDF) results in the error message below being > printed to the R Console. > > ERROR MESSAGE: > ----------------------------------------------------------------- > 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 > > > > ----------------------------------------------------------------- > > TO RECREATE THE PROBLEM: > 1. Using the R Console, create some graph in R; for example, plot(rnorm(100)). > 2. Select File -> Save As -> PostScript (or File -> Save As -> PDF). > 3. Supply a file name and click the "Save" button. > > FOUR OTHER RELEVANT NOTES: > 1. I checked to see if the same error results when invoking the functions > pdf(file=...) or postscript(file=...). No error results, and the content of > the output (.ps or .pdf) file produces a duplicate of what appears in the R > Graphics window. > > 2. I checked, but did not see any other bug reports in the system that are > relevant to this problem. > > 3. Before I submitted this R Bug Report, I reinstalled the PostScript fonts, > and then reinstalled R Version 2.6.0. This did not change the outcome. > > 4. This problem did not exist in previous versions of R on any of my computers. > It exists on all computers for version 2.6.0 of R. > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >-- ______________________________________________________ Simone Giannerini Dipartimento di Scienze Statistiche "Paolo Fortunati" Universita' di Bologna Via delle belle arti 41 - 40126 Bologna, ITALY Tel: +39 051 2098262 Fax: +39 051 232153 http://www2.stat.unibo.it/giannerini/
ripley at stats.ox.ac.uk
2007-Nov-06 16:15 UTC
[Rd] Saving Graphics File as .ps or .pdf (PR#10403)
This has been discussed extensively on R-help (with a workaround), and is already fixed in R-patched. On Tue, 6 Nov 2007, Jane_Harvill at baylor.edu wrote:> Full_Name: Jane L. Harvill > Version: 2.6.0 > OS: Microsoft Windows XP Professional, Version 2002, Service Pack 2 > Submission from: (NULL) (129.62.21.93) > > > PROBLEM: The ability to save the contents of an R Graphics window as a > postscript or PDf file through the drop-down menu (File -> Save As -> > Postscript, or File -> Save As -> PDF) results in the error message below being > printed to the R Console. > > ERROR MESSAGE: > ----------------------------------------------------------------- > 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 >>> > ----------------------------------------------------------------- > > TO RECREATE THE PROBLEM: > 1. Using the R Console, create some graph in R; for example, plot(rnorm(100)). > 2. Select File -> Save As -> PostScript (or File -> Save As -> PDF). > 3. Supply a file name and click the "Save" button. > > FOUR OTHER RELEVANT NOTES: > 1. I checked to see if the same error results when invoking the functions > pdf(file=...) or postscript(file=...). No error results, and the content of > the output (.ps or .pdf) file produces a duplicate of what appears in the R > Graphics window.And once you do that, the menus work.> 2. I checked, but did not see any other bug reports in the system that are > relevant to this problem. > > 3. Before I submitted this R Bug Report, I reinstalled the PostScript fonts, > and then reinstalled R Version 2.6.0. This did not change the outcome. > > 4. This problem did not exist in previous versions of R on any of my computers. > It exists on all computers for version 2.6.0 of R.Only on Windows .... -- 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