PDA

View Full Version : how can i install R (the statistical package)



albean
November 20th, 2005, 11:19 PM
Hi,

I'm new to ubuntu and linux. I would like to install R but I don't know how. I think i have to issue some apt command at the command line, however, I'm not sure exactly what. I've googled around but could not find anything. I hope somebody can help me to know what command i should type.

Thanks.

rejser
November 21st, 2005, 11:28 AM
Don't think you can apt-get R.
download r-base-core_2.2.0.final-0sarge2_i386.deb r-mathlib_2.2.0.final-0sarge2_i386.deb r-base_2.2.0.final-0sarge2_i386.build r-recommended_2.2.0.final-0sarge2_i386.deb (think you need them all, if you run amd64pick the once which ends on amd64) from
http://cran.r-project.org/bin/linux/debian/sarge/
they worked for me.
Normally firefox saves to desktop, so open a terminal and write
cd Desktop && sudo dpkg -i *.deb

rejser
November 21st, 2005, 11:29 AM
By the way, if you have access to spss it runs perfect under wine

Ubuntist
November 21st, 2005, 11:40 AM
I recently installed R using Synaptic -- just do a search for "r-" in package names.

It works fine from the command line -- just type "R" to start. I've also installed something that is supposed to be a GUI for R, but I haven't yet figured out how to run it.

albean
November 21st, 2005, 04:34 PM
Thanks guys,

I'll give it a try when I get home thise evening.

I'll let you know how it goes.

MakubeX
December 22nd, 2005, 07:33 AM
By the way, if you have access to spss it runs perfect under wine

Perfect? I can't find a way to successfully generate some charts/graphs from my data (when SPSS is executed via Cedega/CrossOver).

In wine, I can't pass the network version/status check - the program terminates a few seconds after showing that "network check" splashscreen.

Do you have some references?

towsonu2003
March 3rd, 2006, 08:04 AM
By the way, if you have access to spss it runs perfect under wine
spps doesn't wotk for me in wine

towsonu2003
March 3rd, 2006, 08:06 AM
I recently installed R using Synaptic -- just do a search for "r-" in package names.

It works fine from the command line -- just type "R" to start. I've also installed something that is supposed to be a GUI for R, but I haven't yet figured out how to run it.


R --gui=tk

I tried using gnome, but the package in the repos is empty

pstep9407
October 11th, 2006, 05:18 AM
I didn't like the Tk gui much so I kept looking and found Rcmdr, which is built with ... Tk! But it looks better! Does it work? We'll find out..
To try it out, do :

sudo apt-get install r-cran-rcmdr
Then, to start it, start R normally from the CL, and enter:

library("Rcmdr")
A few seconds later, you should have a working GUI. The creators of the package wrote an academic paper to accompany it -- find it at http://www.jstatsoft.org/v14/i09/v14i09.pdf

towsonu2003
October 11th, 2006, 05:36 AM
the thing is, I was interested in R when I was writing my thesis. then I found out that I cannot use it until I get an R course... at the university I mean.

So I got stuck with spss and vmware while writing the thesis... wasn't happy...

R has so much potential. It has so much potential that you can't grasp it (letalone learn it) quickly without a nice GUI that will allow you to "play around". A nice gui with understandable menus, sensible buttons, and a "my user is stupid" attitude ;)

without such a stupid[me]-oriented gui, it seems to me that only the R-book-readers and R-class-takers will be able to use it, not those who have to "write it now and learn it later".

ps. cmdr is very nice when compared to tk. but, weirdly, it blocks its developers from writing a gui for R, because they keep saying "hey we have a gui".

akniss
October 11th, 2006, 02:54 PM
the thing is, I was interested in R when I was writing my thesis. then I found out that I cannot use it until I get an R course... at the university I mean.

So I got stuck with spss and vmware while writing the thesis... wasn't happy...

R has so much potential. It has so much potential that you can't grasp it (letalone learn it) quickly without a nice GUI that will allow you to "play around". A nice gui with understandable menus, sensible buttons, and a "my user is stupid" attitude ;)

without such a stupid[me]-oriented gui, it seems to me that only the R-book-readers and R-class-takers will be able to use it, not those who have to "write it now and learn it later".

ps. cmdr is very nice when compared to tk. but, weirdly, it blocks its developers from writing a gui for R, because they keep saying "hey we have a gui".


Maybe its just me, but I find Rcmdr more confusing than the cli R interface...

pstep9407
October 21st, 2006, 09:41 PM
Come to think of it, you're right. What I like about the OS X interface for R is not the buttons or drop-downs but the layout -- script on the right, interpreter on the left. That said, I'm working on a script, and I have a question about installing R packages on Linux. How is it done? I downloaded a package called maptools, and it's in my /tmp dir, but how to proceed from there? Any help at all would be appreciated. Tx,
Phil

akniss
October 22nd, 2006, 01:37 AM
Come to think of it, you're right. What I like about the OS X interface for R is not the buttons or drop-downs but the layout -- script on the right, interpreter on the left. That said, I'm working on a script, and I have a question about installing R packages on Linux. How is it done? I downloaded a package called maptools, and it's in my /tmp dir, but how to proceed from there? Any help at all would be appreciated. Tx,
Phil

assuming the downloaded package is called maptools.tar.gz, and is in your /tmp directory, at a terminal, type
sudo R CMD INSTALL /tmp/maptools.tar.gz
That should take care of it.