Re: [R-SIG-Mac] Multiple R versions: set Current via symbolic link: permissions?

2011-10-11 Thread Martin Ellis
I'm not sure if you're already aware of RSwitch (available at
http://r.research.att.com/), but it seems like it might be useful for
what you're trying to do.

Cheers,
Martin


On 11 October 2011 11:24, Marius Hofert marius.hof...@math.ethz.ch wrote:
 Hi,

 I have multiple R versions installed and would like to switch between them 
 via setting the symblic link Current. To make this a bit more convenient, I 
 defined two aliases in .bashrc:

 alias R2.13='d=/Library/Frameworks/R.framework/Versions; rm $d/Current; ln -s 
 $d/2.13 $d/Current'
 alias R2.14='d=/Library/Frameworks/R.framework/Versions; rm $d/Current; ln -s 
 $d/2.14 $d/Current'

 On executing R2.13 in the terminal, I get:
 rm: /Library/Frameworks/R.framework/Versions/Current: Permission denied
 ln: /Library/Frameworks/R.framework/Versions/Current/2.13: Permission denied

 If I chown Current, I still get:
 rm: /Library/Frameworks/R.framework/Versions/Current: Permission denied

 I (bad) solution is to put in sudo in the alias...

 How is it done correctly?

 Cheers,

 Marius

 PS: I also posted it for future reference, I've only found the idea of using 
 ln -s on the help pages/FAQ, but not how to get around the permission issue.
 ___
 R-SIG-Mac mailing list
 R-SIG-Mac@r-project.org
 https://stat.ethz.ch/mailman/listinfo/r-sig-mac


___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Multiple R versions: set Current via symbolic link: permissions?

2011-10-11 Thread Martin Ellis
You'll need to run the chown command using sudo, if the files are owned by root.

Martin

On 11 October 2011 15:46, Marius Hofert marius.hof...@math.ethz.ch wrote:
 You permissions are odd - this is not what installed R looks like, you 
 should see

 ginaz:Versions$ ls -l
 total 8
 drwxrwxr-x  6 root  admin  204 Mar 26  2010 2.12
 drwxrwxr-x  6 root  admin  204 Jul 12 15:44 2.13
 drwxrwxr-x  6 root  admin  204 Oct  2 11:01 2.14
 drwxrwxr-x  6 root  admin  204 Oct  3 12:05 2.15
 lrwxr-xr-x  1 root  admin    4 Oct  3 12:05 Current - 2.15

 so run
 chown -Rh root:admin  /Library/Frameworks/R.framework/
 followed by

 to fix that.

 followed by what? With chown -Rh root:admin 
 /Library/Frameworks/R.framework/ I get a lot of output of the form:
 ...
 chown: 
 /Library/Frameworks/R.framework//library/Rcpp/unitTests/runit.Module.client.package.R:
  Operation not permitted
 ...


 Cheers,
 Simon



 ___
 R-SIG-Mac mailing list
 R-SIG-Mac@r-project.org
 https://stat.ethz.ch/mailman/listinfo/r-sig-mac


___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac