[R] How to put below code in Automator in iOS

S Ellison S.Ellison at LGCGroup.com
Thu Oct 27 17:40:48 CEST 2016

From 'An introduction to R' in the html help system:
"If you just want to run a file foo.R of R commands, the recommended way is to use R CMD BATCH foo.R. "
There is also a short section on 'Invoking R under OS X' in the 'Introduction to R'; it may help.

S Ellison

> -----Original Message-----
> From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Christofer
> Bogaso
> Sent: 27 October 2016 16:06
> To: r-help
> Subject: [R] How to put below code in Automator in iOS
> Hi,
> I have a piece of code available here
> http://mcu.edu.tw/~chenmh/teaching/project/r/reference/RTclTkExamples
> /radiobuttons.html
> Now I put that code in a .R file and then created an .app file in Mac using
> Automator as explained below
> https://www.r-bloggers.com/how-to-source-an-r-script-automatically-on-a-
> mac-using-automator-and-ical/
> Surprisingly what I see is that, when I put that R code in a .app file, R fails to
> pop up the input window, which otherwise is fine when I just copy paste that
> code in R window.
> Could you please help if I need to have anything extra so that my .app will be
> able to take the input.
> Thanks for your time.
> ______________________________________________
> R-help at 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.

This email and any attachments are confidential. Any use...{{dropped:8}}

More information about the R-help mailing list