Difference between revisions of "Installing R"
From Organic Design wiki
(→R on OS X: Details of symbolic links etc) |
m |
||
| Line 12: | Line 12: | ||
On OS X, R installs in the path; | On OS X, R installs in the path; | ||
<table class=document-code><tr><td> | <table class=document-code><tr><td> | ||
| + | |||
/Library/Frameworks/R.framework | /Library/Frameworks/R.framework | ||
/Library/Receipts/ # ''(R-*.pkg receipts) | /Library/Receipts/ # ''(R-*.pkg receipts) | ||
| Line 17: | Line 18: | ||
The directory structure is; | The directory structure is; | ||
<table class=document-code><tr><td> | <table class=document-code><tr><td> | ||
| − | drwxrwxr-x 8 root admin 272 Jul 27 16:44 . | + | drwxrwxr-x 8 root admin 272 Jul 27 16:44 . |
| − | drwxrwxr-x 6 root admin 204 Aug 23 2005 .. | + | drwxrwxr-x 6 root admin 204 Aug 23 2005 .. |
| − | -rw-rw-r-- 1 root admin 6148 Aug 23 2005 .DS_Store | + | -rw-rw-r-- 1 root admin 6148 Aug 23 2005 .DS_Store |
| − | lrwxr-xr-x 1 root admin 24 Jul 27 16:44 Headers -> Versions/Current/Headers | + | lrwxr-xr-x 1 root admin 24 Jul 27 16:44 Headers -> Versions/Current/Headers |
| − | lrwxr-xr-x 1 root admin 31 Jul 27 16:44 PrivateHeaders -> Versions/Current/PrivateHeaders | + | lrwxr-xr-x 1 root admin 31 Jul 27 16:44 PrivateHeaders -> Versions/Current/PrivateHeaders |
| − | lrwxr-xr-x 1 root admin 18 Jul 27 16:44 R -> Versions/Current/R | + | lrwxr-xr-x 1 root admin 18 Jul 27 16:44 R -> Versions/Current/R |
| − | lrwxr-xr-x 1 root admin 26 Jul 27 16:44 Resources -> Versions/Current/Resources | + | lrwxr-xr-x 1 root admin 26 Jul 27 16:44 Resources -> Versions/Current/Resources |
| − | drwxrwxr-x 9 root admin 306 Jul 27 16:44 Versions | + | drwxrwxr-x 9 root admin 306 Jul 27 16:44 Versions |
</table> | </table> | ||
The symbolic link for R points (''R -> Versions/Current/R'') to the current release, this can be altered to run a previous version of R, e.g. | The symbolic link for R points (''R -> Versions/Current/R'') to the current release, this can be altered to run a previous version of R, e.g. | ||
| − | |||
<table class=document-code><tr><td> | <table class=document-code><tr><td> | ||
| − | rm -f /Library/Frameworks/R.framework/R | + | sudo -s # [enter password] |
| − | cd /Library/Frameworks/R.framework/ | + | |
| − | ln -s Versions/Current/R R | + | rm -f /Library/Frameworks/R.framework/R |
| + | cd /Library/Frameworks/R.framework/ | ||
| + | ln -s Versions/Current/R R | ||
</table> | </table> | ||
Revision as of 21:47, 27 July 2006
R programming language
R is a powerful statistical programming language, an implementation of the S programming language, with semantics derived from Scheme (see R programming language for details).
R on OS X
Install the R dmg format from a local CRAN mirror, e.g. Auckland statistics mirror.
Installation details
On OS X, R installs in the path;
/Library/Frameworks/R.framework /Library/Receipts/ # (R-*.pkg receipts) |
The directory structure is;
drwxrwxr-x 8 root admin 272 Jul 27 16:44 . drwxrwxr-x 6 root admin 204 Aug 23 2005 .. -rw-rw-r-- 1 root admin 6148 Aug 23 2005 .DS_Store lrwxr-xr-x 1 root admin 24 Jul 27 16:44 Headers -> Versions/Current/Headers lrwxr-xr-x 1 root admin 31 Jul 27 16:44 PrivateHeaders -> Versions/Current/PrivateHeaders lrwxr-xr-x 1 root admin 18 Jul 27 16:44 R -> Versions/Current/R lrwxr-xr-x 1 root admin 26 Jul 27 16:44 Resources -> Versions/Current/Resources drwxrwxr-x 9 root admin 306 Jul 27 16:44 Versions |
The symbolic link for R points (R -> Versions/Current/R) to the current release, this can be altered to run a previous version of R, e.g.
sudo -s # [enter password] rm -f /Library/Frameworks/R.framework/R cd /Library/Frameworks/R.framework/ ln -s Versions/Current/R R |



