I want to automate a script in mac. I followed this post but Automator throws an error -: Rscript: command not found
.
Actually running the simple command Rscript
in Automator doesn't work. But it works within Terminal...
Any suggestions ?
I tried to install the most recent version of R (3.6.2) but the paradox remains.
Version info:
R version 3.6.2 (2019-12-12) -- "Dark and Stormy Night"
Platform: x86_64-apple-darwin15.6.0 (64-bit)
As suggested by @alistaire, using /usr/local/bin/R --slave -e
instead of Rscript
works perfectly.