R 語言在centos6.4上的安裝
周海漢 2013.8.30
CentOS 6.4 64位上安裝。官方下載地址:
官方下載比較老。
[R-2.10.0-2.el5.x86_64.rpm](http://ftp.ctex.org/mirrors/CRAN/bin/linux/redhat/el5/x86_64/R-2.10.0-2.el5.x86_64.rpm) | 09-Nov-2009 16:45 | 14K |
[R-core-2.10.0-2.el5.x86_64.rpm](http://ftp.ctex.org/mirrors/CRAN/bin/linux/redhat/el5/x86_64/R-core-2.10.0-2.el5.x86_64.rpm) | 09-Nov-2009 16:45 | 31M |
[R-devel-2.10.0-2.el5.x86_64.rpm](http://ftp.ctex.org/mirrors/CRAN/bin/linux/redhat/el5/x86_64/R-devel-2.10.0-2.el5.x86_64.rpm) | 09-Nov-2009 16:45 | 87K |
[ReadMe](http://ftp.ctex.org/mirrors/CRAN/bin/linux/redhat/el5/x86_64/ReadMe) | 31-Aug-2009 15:30 | 262 |
[libRmath-2.10.0-2.el5.x86_64.rpm](http://ftp.ctex.org/mirrors/CRAN/bin/linux/redhat/el5/x86_64/libRmath-2.10.0-2.el5.x86_64.rpm) | 09-Nov-2009 16:45 | 102K |
[libRmath-devel-2.10.0-2.el5.x86_64.rpm](http://ftp.ctex.org/mirrors/CRAN/bin/linux/redhat/el5/x86_64/libRmath-devel-2.10.0-2.el5.x86_64.rpm) | 09-Nov-2009 16:45 | 148K |
官方比較舊,rpm還安裝失敗:
[[email protected] ~]$ sudo rpm -ivh R-core-2.10.0-2.el5.x86_64.rpm warning: R-core-2.10.0-2.el5.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 97d3544e: NOKEY error: Failed dependencies: libtcl8.4.so()(64bit) is needed by R-core-2.10.0-2.el5.x86_64 libtk8.4.so()(64bit) is needed by R-core-2.10.0-2.el5.x86_64 perl(File::Copy::Recursive) is needed by R-core-2.10.0-2.el5.x86_64
[[email protected] ~]$ sudo yum install R
No package R available. Error: Nothing to do
更新源到fedoraproject
[[email protected] ~]$ sudo yum install R
Downloading Packages: (1/13): R-3.0.1-2.el6.x86_64.rpm | 19 kB 00:00 (2/13): R-core-3.0.1-2.el6.x86_64.rpm | 46 MB 02:59 (3/13): R-core-devel-3.0.1-2.el6.x86_64.rpm | 90 kB 00:00 (4/13): R-devel-3.0.1-2.el6.x86_64.rpm | 19 kB 00:00 (5/13): R-java-3.0.1-2.el6.x86_64.rpm | 20 kB 00:00 (6/13): R-java-devel-3.0.1-2.el6.x86_64.rpm | 19 kB 00:00 (7/13): libRmath-3.0.1-2.el6.x86_64.rpm | 115 kB 00:00 (8/13): libRmath-devel-3.0.1-2.el6.x86_64.rpm | 24 kB 00:00 (9/13): pcre-devel-7.8-6.el6.x86_64.rpm | 318 kB 00:00 (10/13): tcl-devel-8.5.7-6.el6.x86_64.rpm | 162 kB 00:00 (11/13): texinfo-4.13a-8.el6.x86_64.rpm | 668 kB 00:00 (12/13): texinfo-tex-4.13a-8.el6.x86_64.rpm | 132 kB 00:00 (13/13): tk-devel-8.5.7-5.el6.x86_64.rpm
[[email protected] ~]$ R
R version 3.0.1 (2013-05-16) – “Good Sport” Copyright (C) 2013 The R Foundation for Statistical Computing Platform: x86_64-redhat-linux-gnu (64-bit)
R是自由軟體,不帶任何擔保。 在某些條件下你可以將其自由散佈。 用’license()’或’licence()’來看散佈的詳細條件。
R是個合作計劃,有許多人為之做出了貢獻. 用’contributors()’來看合作者的詳細情況 用’citation()’會告訴你如何在出版物中正確地引用R或R程式包。
用’demo()’來看一些示範程式,用’help()’來閱讀線上幫助檔案,或 用’help.start()’通過HTML瀏覽器來看幫助檔案。 用’q()’退出R.
demo(graphics)
可以檢視R能畫哪些型別的圖。
各種字元展示
demo(Hershey)
退出
q() Save workspace image? [y/n/c]: n
如非註明轉載, 均為原創. 本站遵循知識共享CC協議,轉載請註明來源