[Rd] savePlot() under Windows

Duncan Murdoch murdoch.duncan at gmail.com
Tue Apr 9 01:28:22 CEST 2013


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
>



More information about the R-devel mailing list