Rscript?
FWIW, with a recent-ish CRAN R installation (3.2.2 patched, r69059) on
El Capitan, I have the same and all is well:
kevin:~$ which Rscript
/usr/local/bin/Rscript
kevin:~$ which Rscript | xargs greadlink
/Library/Frameworks/R.framework/Resources/bin/Rscript
kevin:~$ which Rscript | xargs greadlink -f
/Library/Frameworks/R.framework/Versions/3.2/Resources/bin/Rscript
Is it possible that the 'Current' symlink in your Versions folder is
not up to date for some reason? (You should see a number of installed
R versions in `R.framework/Versions/`, with `Current` being a symlink
to the currently active version of R).
It might be useful to see the output of `ls -la` in both your
R.framework and R.framework/Versions folders, to confirm.
Kevin
On Tue, Oct 20, 2015 at 9:38 AM, Roger Koenker <rkoenker at illinois.edu> wrote:
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
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac