[R] paper size
Prof Brian D Ripley
ripley at stats.ox.ac.uk
Thu Jun 8 07:23:46 CEST 2000
On Wed, 7 Jun 2000, Faheem Mitha wrote:
> The ~/.Renviron method should also work in Windows.
Yes, but setting R_PAPERSIZE=a4 on the command line is easier on Windows.
> In Unix you can either set the environmental variable in .Renviron or you
> can change the value in config.site. config.site is a shell script, so
> well may be Unix-specific. However, it (config.site) does yield the
> following useful information
Those are slightly different. If you set it in config.site, it is compiled
in as the default for the environment variable R_PAPERSIZE. People on
Windows are normally using pre-compiled versions.
> (from config.site)
> # The paper size for the local (PostScript) printer.
> # It must either be left blank or set to one of "a4" or "letter".
> # If left blank the system will use "a4".
> # R_PAPERSIZE=a4
> So try setting R_PAPERSIZE=a4 in .Renviron (create a .Renviron if you
> don't have one) and see what happens.
> Note by the way that command line arguments take precedence.
> By the way, I am surprised that your system does not default to A4. I
> thought that A4 defaults were pretty universal (as see the above shell
> script), but maybe not in NT? What default is your system currently using?
The default on all versions of R is "a4", including Windows (both the
Windows developers live in ISO-conformant countries).
I suspect the critical issue is that R_PAPERSIZE *only* applies to the
postscript device, where it supplies the default for the argument `paper'.
There are other printer devices on Windows, and it is likely that
win.print is being used. That defaults to width=height=7(inches),
and those are arguments passed directly to it.
> I thought letter was the only other major option.
> On Thu, 8 Jun 2000, Kong, Chuang Fong wrote:
> > Thanks but I forgot to mention that I am using Windows NT, will it work the
> > same way? Thanks.
> > -----Original Message-----
> > From: Faheem Mitha [mailto:faheem at email.unc.edu]
> > Try setting
> > R_PAPERSIZE=a4 or R_PAPERSIZE=A4 in ~/.Renviron if you are using Unix.
> > I don't have any documentation for this but at least
> > R_PAPRSIZE=letter works for me in ~/.Renviron
See ?postscript for the documentation, which tells you the other options.
> > Faheem.
> > On Thu, 8 Jun 2000, Kong, Chuang Fong wrote:
> > > dear All,
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
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 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help