[R] R 2.7.0: pdf() > pdf.options versus formals

From: Hans-Joerg Bibiko <bibiko_at_eva.mpg.de>
Date: Mon, 26 May 2008 10:59:55 +0200


I have a tiny question about the graphics change in R 2.7.0.

If I write a script la:

formals(pdf)[c("file","onefile","width","height")] <- list("~/Rplot
%03d.pdf", FALSE, 8, 8)


both plots will be written into ONE pdf file. (not two as expected) This worked fine under 2.6.x

In R 2.7.0 I have to write:

formals(pdf)[c("file","onefile","width","height")] <- list("~/Rplot
%03d.pdf", FALSE, 8, 8)


In the NEWS doc for R 2.7.0 is written:
pdf() now takes defaults from the new function pdf.options() ...

Fine. But is there no way to use formals in that context (or more precisely to preset 'onefile' because other arguments are taken from formals)?

I have several scripts written for R 2.6 and that would mean that I have to rewrite all of them.

R version 2.7.0 (2008-04-22)


attached base packages:
[1] stats graphics grDevices utils datasets methods base

Many thanks in advance,


R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 26 May 2008 - 09:05:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 26 May 2008 - 10:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive