PO SU
2014-Dec-01 02:09 UTC
[R] using win task to run Rscript somepackages can't work in script mode
Dear expeRts, ? ? ?These days i want to run a .R file contained a package called gmailr to do something about processing gmail , it works well in? interactive ?GUI ?,that is ,Rstudio. But i want to run it by a windows task, so i need to run the .R file in Rscript mode, sadly, there seems different between the two ways, the gmailr package fails work in the script mode. ? ? So, what the difference? why Rscript can't run some codes which works well in Rstudio? How can i do something to make it suceess if there is some options to set ? ? ?? -- PO SU mail: desolator88 at 163.com Majored in Statistics from SJTU
Fábio Magalhães
2014-Dec-03 16:58 UTC
[R] using win task to run Rscript somepackages can't work in script mode
Hi, You didn't provide enough details (like the error message), but you could start by calling Rscript with --vanilla option so that it doesn't read Rprofile, nor environment files and see what happens. #! F?bio On Mon, Dec 1, 2014 at 12:09 AM, PO SU <rhelpmaillist at 163.com> wrote:> > Dear expeRts, > These days i want to run a .R file contained a package called gmailr to do something about processing gmail , it works well in > interactive > GUI ,that is ,Rstudio. But i want to run it by a windows task, so i need to run the .R file in Rscript mode, sadly, there seems different between the two ways, the gmailr package fails work in the script mode. > So, what the difference? why Rscript can't run some codes which works well in Rstudio? How can i do something to make it suceess if there is some options to set ? > > > > > > -- > > PO SU > mail: desolator88 at 163.com > Majored in Statistics from SJTU > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.