Skip to content

Where is located the rscript in mac osx??

4 messages · DIMITRIS KARAKOSTIS, Berend Hasselman

#
On 09-12-2012, at 20:36, DIMITRIS KARAKOSTIS wrote:

            
Which R do you mean? R.app?

There is also a commandline R.

Open Terminal and type

which Rscript

and 

which R

to locate the commandline versions assuming PATH is set correctly.
But: Rscript and R are symbolic links to /Library/Frameworks/R.framework/Resources/bin/Rscript and /Library/Frameworks/R.framework/Resources/bin/R respectively. 

Berend
#
On 10-12-2012, at 00:04, DIMITRIS KARAKOSTIS wrote:

            
Could it be that you should change the // to single /?

exec("/usr/bin/Rscript /Applications/MAMP/htdocs/php_test/my_rscript.txt")

Berend