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 <rhelpmaill...@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: desolato...@163.com > Majored in Statistics from SJTU > ______________________________________________ > R-help@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. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.