From xie at yihui.name  Tue Apr  9 00:05:15 2013
From: xie at yihui.name (Yihui Xie)
Date: Mon, 8 Apr 2013 17:05:15 -0500
Subject: [Rd] savePlot() under Windows
Message-ID: <CANROs4f595-uM3SUm4HBfKLYU2UKXPuLkXMOoNdPTQSrEAcfrA@mail.gmail.com>

Hi,

A Windows user asked me a question and I believe this is a bug of R
3.0.0 under Windows:

> plot(1:10)
> savePlot('test.wmf')
Error in .External(C_savePlot, device, filename, type, restoreConsole) :
  Incorrect number of arguments (4), expecting 3 for 'savePlot'

> sessionInfo()
R version 3.0.0 (2013-04-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_3.0.0

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



[Rd] savePlot() under Windows
Yihui Xie