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
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 >
Hi I know I'm a year late to the party, but under 3.0.2 on a windows pc, I can't get saveplot to save a file even to my desktop -- is there up-to-date documentation or code snippets someone can share (the doc in the help files dont work for me) thanks in advance Lou -- View this message in context: http://r.789695.n4.nabble.com/savePlot-under-Windows-tp4663712p4687780.html Sent from the R devel mailing list archive at Nabble.com.