[R-SIG-Mac] Rscript?

Roger Koenker rkoenker at illinois.edu
Tue Oct 20 18:38:34 CEST 2015


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/…  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    rkoenker at uiuc.edu            Department of Economics
vox:     217-333-4558                University of Illinois
fax:       217-244-6678                Urbana, IL 61801



More information about the R-SIG-Mac mailing list