[R-SIG-Mac] Rscript on OSX

Ido M. Tamir tamir at imp.univie.ac.at
Thu Jan 10 10:09:06 CET 2008


Hi,

I directed somebody to install R (2.6.1) on his OSX computer,
following instructions from http://cran.r-project.org/bin/macosx.
She used the provided binary image.
She can run R from the console.

The problem is that Rscript is not in the path (only minor, because ln -s is 
hopefully doable). 
But the script failed when I tried to put a hardcoded path to Rscript into the 
shebang line. And when I try to invoke it directly:

>-bash: ./Rscript: cannot execute binary file

On linux this works:
>Rscript
Usage: /path/to/Rscript [--options] [-e expr] file [args]

--options accepted are
....


I would like to send her some Rscripts, but how can we make them
run on her system?


thank you very much,
ido



imaclab3:/Library/Frameworks/R.framework/Resources/bin ru$ ls -l 

total 1008
-rwxrwxr-x   1 root  admin    1654 Nov 26 17:36 BATCH
-rwxrwxr-x   1 root  admin    2188 Nov 26 17:36 COMPILE
-rwxrwxr-x   1 root  admin   34391 Nov 26 17:36 INSTALL
-rwxrwxr-x   1 root  admin    1593 Nov 26 17:36 LINK
-rwxrwxr-x   1 root  admin    7210 Nov 26 17:37 R
-rwxrwxr-x   1 root  admin    7210 Nov 26 17:37 R.orig
-rw-rw-r--   1 root  admin     655 Nov 26 17:37 R.rej
-rwxrwxr-x   1 root  admin    2244 Nov 26 17:36 REMOVE
-rwxrwxr-x   1 root  admin     928 Nov 26 17:36 Rcmd
-rwxrwxr-x   1 root  admin    9523 Nov 26 17:36 Rd2dvi
-rwxrwxr-x   1 root  admin     842 Nov 26 17:36 Rd2txt
-rwxrwxr-x   1 root  admin    3237 Nov 26 17:36 Rdconv
-rwxrwxr-x   1 root  admin    1320 Nov 26 17:36 Rdiff
-rwxrwxr-x   1 root  admin    2854 Nov 26 17:36 Rprof
-rwxrwxr-x   1 root  admin   18084 Nov 26 17:36 Rscript
-rwxrwxr-x   1 root  admin    4656 Nov 26 17:36 SHLIB
-rwxrwxr-x   1 root  admin   16129 Nov 26 17:36 Sd2Rd
-rwxrwxr-x   1 root  admin     730 Nov 26 17:36 Stangle
-rwxrwxr-x   1 root  admin     726 Nov 26 17:36 Sweave
-rwxrwxr-x   1 root  admin   21715 Nov 26 17:36 build
-rwxrwxr-x   1 root  admin   78570 Nov 26 17:36 check
-rwxrwxr-x   1 root  admin    6927 Nov 26 17:36 config
drwxrwxr-x   4 root  admin     136 Nov 26 17:36 exec
-rwxrwxr-x   1 root  admin    3613 Nov 26 17:36 f77_f2c
-rwxrwxr-x   1 root  admin   10720 Nov 26 17:36 javareconf
-rwxrwxr-x   1 root  admin  215101 Nov 26 17:36 libtool
-rwxrwxr-x   1 root  admin    3495 Nov 26 17:36 mkinstalldirs
-rwxrwxr-x   1 root  admin     413 Nov 26 17:36 pager



More information about the R-SIG-Mac mailing list