Bug 14827 - dev.copy2pdf: Unused argument "out.type"
dev.copy2pdf: Unused argument "out.type"
Status: CLOSED FIXED
Product: R
Classification: Unclassified
Component: Graphics
R 2.14.1
ix86 (32-bit) Linux-Ubuntu
: P5 normal
Assigned To: R-core
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-29 16:22 UTC by Davor Cubranic
Modified: 2012-02-29 17:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Davor Cubranic 2012-02-29 16:22:43 UTC
Specifying the "out.type" argument to "dev.copy2pdf" gives me the following error:

> dev.copy2pdf(out.type='cairo')
Error in device(...) : unused argument(s) (out.type = "cairo")
> dev.copy2pdf(out.type='pdf')
Error in device(...) : unused argument(s) (out.type = "pdf")

This is after the argument has been checked, that is, as the call is being passed to "dev.copy":
> dev.copy2pdf(out.type='foo')
Error in match.arg(out.type, c("pdf", "quartz", "cairo")) : 
  'arg' should be one of “pdf”, “quartz”, “cairo”


Version info (R installed from Ubuntu packages, version 2.14.1-1oneiric0):

> R.Version()
$platform
[1] "i686-pc-linux-gnu"

$arch
[1] "i686"

$os
[1] "linux-gnu"

$system
[1] "i686, linux-gnu"

$status
[1] ""

$major
[1] "2"

$minor
[1] "14.1"

$year
[1] "2011"

$month
[1] "12"

$day
[1] "22"

$`svn rev`
[1] "57956"

$language
[1] "R"

$version.string
[1] "R version 2.14.1 (2011-12-22)"