[Rd] Graphics devices file[name] argument

Paul Roebuck roebuck at odin.mdacc.tmc.edu
Wed Feb 23 20:31:16 CET 2005


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.

> 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)



More information about the R-devel mailing list