[R-SIG-Mac] Rscript?

Roger Koenker rkoenker at illinois.edu
Tue Oct 20 19:14:50 CEST 2015


I have:

yzzy: pwd
/Library/Frameworks/R.framework/Versions
yzzy: ls -la
total 8
drwxrwxr-x+ 16 root  admin  544 Oct 20 11:13 .
drwxrwxr-x+  8 root  admin  272 Oct 20 11:13 ..
drwxrwxr-x+  3 root  admin  102 Feb 10  2010 2.10
drwxrwxr-x+  3 root  admin  102 May  1  2011 2.11
drwxrwxr-x+  3 root  admin  102 Aug 21  2012 2.14
drwxrwxr-x+  6 root  admin  204 Apr  1  2014 2.15
drwxrwxr-x+  4 root  admin  136 Sep  5  2007 2.4
drwxrwxr-x+  4 root  admin  136 Aug 22  2008 2.6
drwxrwxr-x+  3 root  admin  102 Feb  6  2009 2.7
drwxrwxr-x+  6 root  admin  204 Apr  1  2014 2.8
drwxrwxr-x+  6 root  admin  204 Apr  1  2014 2.9
drwxrwxr-x+  6 root  admin  204 Apr  1  2014 3.0
drwxrwxr-x   3 root  admin  102 Jun  5 15:32 3.1
drwxrwxr-x   6 root  admin  204 Oct 20 11:13 3.2
drwxrwxr-x   3 root  admin  102 Oct 20 11:13 3.3
lrwxr-xr-x   1 root  admin    3 Oct 20 11:13 Current -> 3.2

but note that my Rscript expects that there is a bin directory here...

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

> On Oct 20, 2015, at 12:01 PM, Kevin Ushey <kevinushey at gmail.com> wrote:
> 
> 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



More information about the R-SIG-Mac mailing list