On 13-09-2013, at 19:02, Patrick Schorderet <patrick.schorde...@gmail.com> wrote:
> > I'm trying to write an Automator script for people who don't want to run > scripts from the R console. > The workflow would ideally look like this: > - Ask user to enter different parameters (I was able to do this part) > - Run an R script using the paramters > > I guess I need to run R via a shell script, but I just can't get my head > around the problem. > Whatever I am doing, my R just pops open and closes directly. > > This is what I tried (in Automator): > open "/usr/bin/Rscript" "./test_file/test.R" > This is a Mac question. It belongs in the R-SIG-Mac mailing list ( r-sig-...@r-project.org )(https://stat.ethz.ch/mailman/listinfo/r-sig-mac) And it's more an Automator than an R subject. But to answer your question: just /usr/bin/Rscript "./test_file/test.R" will do. Since there are no spaces in the filepath you can leave out those double quotes. Berend > ______________________________________________ > 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 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.