Re: [R] Rscript on OSX

From: Andrew Beckerman <a.beckerman_at_sheffield.ac.uk>
Date: Wed, 9 Jan 2008 14:01:21 +0000

Ido -

R for OSX generally runs via an application, called R.app, which your colleague could find in their applications directory. It can run scripts and has a rather nice script editor associated with it.

You can run R as you would in linux using X11.app, found in Applications->Utilities on OSX. R is not designed to run from Terminal.app (actually, terminal does not do graphics well for R). X11 provides the behaviour that you would be used to in Linux etc.

BTW - there is a R-Mac-help group as well for macintosh specific issues - r-sig-mac_at_stat.math.ethz.ch

Andrew



Dr. Andrew Beckerman
Department of Animal and Plant Sciences, University of Sheffield, Alfred Denny Building, Western Bank, Sheffield S10 2TN, UK ph +44 (0)114 222 0026; fx +44 (0)114 222 0002 http://www.beckslab.staff.shef.ac.uk/

On 9 Jan 2008, at 13:22, Ido M. Tamir wrote:

> 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 can run R from the console.
> But plot(1:10) doesn't produce any output or open a window (as I am
> used to from linux).
>
> More importantly:
> Rscript is not in the path (minor problem ln -s is hopefully
> doable). I tried
> to put a hardcoded path to Rscript into the shebang line but this
> fails. And
> when I try to invoke it directly:
>
>> -bash: ./Rscript: cannot execute binary file
>
> On linux this works.
>
> 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
>
> ______________________________________________
> R-help_at_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_at_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. Received on Wed 09 Jan 2008 - 14:04:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Jan 2008 - 15:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive