Roger Koenker <[email protected]> writes:

> I don’t use Rscript, but thought I would try to see if I could improve my 
> workflow this morning and have 
> encountered a somewhat baffling roadblock:
>
> I try to run:
>
> yzzy: Rscript --verbose -e "cat('hi')"
> running
>   '/Library/Frameworks/R.framework/Versions/bin/R --slave --no-restore -e 
> cat('hi')'
>
> Rscript execution error: No such file or directory
>
> so then I wondered:
>
> yzzy: which Rscript
> /usr/bin/Rscript
> yzzy: ls -l /usr/bin/Rscript
> lrwxr-xr-x  1 root  wheel  53 Oct 20 11:13 /usr/bin/Rscript -> 
> /Library/Frameworks/R.framework/Resources/bin/Rscript
>
> which looked ok, since I had reinstalled R this morning:
>
> yzzy: R --version
> R version 3.2.2 (2015-08-14) -- "Fire Safety"
> Copyright (C) 2015 The R Foundation for Statistical Computing
> Platform: x86_64-apple-darwin13.4.0 (64-bit)
>
> but eventually I noticed (see above) that Rscript seems to be pointing to 
> Library/Frameworks/R.framework/Versions/bin/R
> which indeed doesn’t exist.  So something is amiss.   Naively it would seem 
> that Rscript should point to …/Resources/…
> not to …/Versions/…

In my homebrew installation of R it does:

,----
| 07:11:38 ~$ Rscript --verbose -e "cat('Hello World')"
| running
|   '/usr/local/Cellar/r/3.2.2_1/R.framework/Versions/3.2/Resources/bin/R 
--slave --no-restore -e cat('Hello World')'
| 
| Hello World07:11:44 ~$
`----

Cheers,

Rainer

> but I’m sure that there is a simpler explanation that probably involves some 
> weirdness in my
> installation setup.
>
> url:    www.econ.uiuc.edu/~roger            Roger Koenker
> email    [email protected]            Department of Economics
> vox:     217-333-4558                University of Illinois
> fax:       217-244-6678                Urbana, IL 61801
>
> _______________________________________________
> R-SIG-Mac mailing list
> [email protected]
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      [email protected]

Skype:      RMkrug

PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to