From ligges at statistik.uni-dortmund.de  Thu Feb 24 13:06:50 2005
From: ligges at statistik.uni-dortmund.de (Uwe Ligges)
Date: Thu Feb 24 13:05:23 2005
Subject: [Rd] Graphics devices file[name] argument
In-Reply-To: <Pine.OSF.4.58.0502231258080.510534@odin.mdacc.tmc.edu>
References: <Pine.OSF.4.58.0502231258080.510534@odin.mdacc.tmc.edu>
Message-ID: <421DC35A.8070700@statistik.uni-dortmund.de>

Paul Roebuck wrote:

> Just got trapped by inconsistency of name of first argument
> for file-based graphics devices. Both 'file' and 'filename'
> are currently in use depending on the device. I ran on a
> machine without PNG support which my code used postscript
> as the backup device and choked here.


Specifying file = ..... should work because of partial matching.

Uwe Ligges


> 
>>do.call(device, list(filename = pathname,
> 
>                        height = height,
>                        width = width))
> 
> --- Method and first argument ---
> postscript(file,
> pdf(file,
> pictex(file,
> xfig(file,
> bitmap(file,
> jpeg(filename,
> png(filename,
> bmp(filename,
> 
> 
> 
>>version
> 
>          _
> platform sparc-sun-solaris2.9
> arch     sparc
> os       solaris2.9
> system   sparc, solaris2.9
> status
> major    1
> minor    9.0
> year     2004
> month    04
> day      12
> language R
> 
> Also verified against R 2.0.1 on Windows
> 
> ----------------------------------------------------------
> SIGSIG -- signature too long (core dumped)
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Graphics devices file[name] argument
Uwe Ligges