2007年1月13日 星期六

linux-ubuntu之旅-13-R (statistical software)- GUI

akniss


February 2nd, 2007, 06:53 PM

I am running Xubuntu dapper on an iMac G3.

I installed R through Synaptic by marking r-base for installation. Synaptic marked a number of dependent packages, and I installed them all.

However R did not show up in my applications menu. I can start R in a terminal through the command line, but it only comes up in the terminal - R does not open in its own window.

Should I have selected a GUI to install for R? What file should I install for this?

R does not have a GUI. It strictly a CLI based environment. There are other packages that have been developed to try and put a GUI on top of R, but I don't know if any of them are in the Dapper repos.


Three such 'add-ons' are:

Rcmdr: R commander - run R as root, and install it from CRAN using the following commands (one line at a time):sudo R

install.packages('Rcmdr')

q()

A window will come up asking you to choose a mirror. Choose one and the package should get installed. After installation, quit R with the q() command. You can then run R again as normal user and load the Rcmdr GUI with the command R

library(Rcmdr)

JGR: Java GUI for R - JGR is java based, and so should be platform independent. Google it and you should get to the home page. I've never actually tried it.

Rkward: This one looks the most promising, but it still looks like its early in development. Not sure if there are Dapper .debs available or not.

thePsychologist

February 4th, 2007, 03:07 PM

R comes with it's own window which uses Tcl/Tk which can be started by the command:


R --gui=Tk
Which allows you to select mirrors, etc. not really useful in my opinion. There are some other GUIs, and aside from the ones already mentioned you can look at some other ones:

http://www.sciviews.org/_rgui/

RKWard is probably the most developed, and I think it's a KDE app. Check it out. http://rkward.sourceforge.net/. There's a deb file you can download too.


沒有留言:

Linux 文字編輯常用指令

一定要看 http://linux.vbird.org//linux_basic/0330regularex.php ============================================= grep--找行資訊 ========================...