From murdoch.duncan at gmail.com  Tue Apr  9 01:28:22 2013
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Mon, 08 Apr 2013 19:28:22 -0400
Subject: [Rd] savePlot() under Windows
In-Reply-To: <CANROs4f595-uM3SUm4HBfKLYU2UKXPuLkXMOoNdPTQSrEAcfrA@mail.gmail.com>
References: <CANROs4f595-uM3SUm4HBfKLYU2UKXPuLkXMOoNdPTQSrEAcfrA@mail.gmail.com>
Message-ID: <51635296.5060705@gmail.com>

On 13-04-08 6:05 PM, Yihui Xie wrote:
> Hi,
>
> A Windows user asked me a question and I believe this is a bug of R
> 3.0.0 under Windows:

Yes.  On Windows the external needs 4 args, but on other platforms only 
3.  The check was checked on other platforms.  I'll fix.

Duncan Murdoch

>
>> 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
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] savePlot() under Windows
Duncan Murdoch