From roebuck at odin.mdacc.tmc.edu  Wed Feb 23 20:31:16 2005
From: roebuck at odin.mdacc.tmc.edu (Paul Roebuck)
Date: Wed Feb 23 20:31:27 2005
Subject: [Rd] Graphics devices file[name] argument
Message-ID: <Pine.OSF.4.58.0502231258080.510534@odin.mdacc.tmc.edu>

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)


[Rd] Graphics devices file[name] argument
Paul Roebuck