Skip to content

Running R in Ubuntu...really basic..sorry

6 messages · Judson, Michael Rutter, Vera, Pedro L. +3 more

#
Hi, I've actually run R quite a bit in Windows.  I've had a release
8.04 of Ubuntu running a laptop for 3 days now.  After struggling for
much of that time to install R, I finally figured out that Dell
shipped with the sources.list obsolete or just plain wrong.  So I
finally got it installed last night (for some reason v2.6.2, not
v2.9.x).  This morning I was able to download and install the
LearnBayes package.  My biggest problem right now is that I don't know
how to run R except as a local-directory command in the Terminal.
Certain R commands cause the terminal to go into some changed state
and not take any more commands.  Right now for example I ahve a last
line that is darkened in over (END) and it's sitting there. Any
advice?

Oh, if you suspect something in your sources.list (specific to Dell)
email ma and I'll explain.  Thanks.  Room533
#
I would make sure that you have the following line in your /etc/apt/sources.list

deb http://cran.case.edu/bin/linux/ubuntu hardy/

That will get you the R 9.2.0.  Then I would also run the following:

sudo apt-get install ess

That will install emacs (an editor) and some extra code for running R
(and S plus).  As long as your file has a .R extension (foo.R, for
example), you will see some R related buttons and menus.  Look up
"emacs speaks statistics" via google for more information.  Using ess
is the best way to enter and debug code, IMO.

Hope this helps,
Michael
On Thu, May 7, 2009 at 10:50 AM, Judson <judson0423 at gmail.com> wrote:

  
    
1 day later
#
I meant to send a reply to this post to the list, but because I didn't pay attention, it just went to the original poster. I apologize for that. Here's my post:

I've been running R in linux (Antix; a MEPIS derivative; Debian Unstable) for some time now without any problems (even from the terminal window). Recently though, I've switched to vim (a very useful text editor) which can be made (with a use of a plugin) to call up an R window and send commands (actually entire blocks of commands) to R. I've been very impressed with this option and I would recommend it. Unfortunately, there's a learning curve (almost as steep as R's) for vim as well. However, I think the results are well worth the effort.

I hope this helps.

Best regards,
Pedro
#
Hi,
On Thu, May 7, 2009 at 10:50 AM, Judson <judson0423 at gmail.com> wrote:
I am not quite sure of the exact question here, but looking at the two
replies, I think it has something to do with a "gui". If not then this
short reply from me is moot. If so, then take look here:
http://www.sciviews.org/_rgui/

I am personally involved in Rkward - it is a KDE based GUI which does
most of the basic stuff nicely. We are about to make a new release, so
if you are interested join the rkward-users at lists.sourceforge.net
mailing list. For a quick "screenshot" see here:
http://apps.sourceforge.net/mediawiki/rkward/index.php?title=Screenshots

Hope this plug is not too objectionable to the list!
2 days later
#
Hi Pedro,

I really like your post, as I am a passionate user of the vim R plugin
for Linux as well :) Actually, an improved derivative has just been
posted to vim.org
(http://www.vim.org/scripts/script.php?script_id=2628), with omni
completion, some GUI Menu items and some more additional features, in
case anyone is interested. I haven't tested it, but it may be worth the
upgrade.

Johannes

* Vera, Pedro L. <pvera at health.usf.edu> [090510 19:30]:

  
    
#
I think the most popular way of running R is using emacs with the ESS
plugin. Following links under   http://cran.r-project.org/ , Ubuntu has
ess and emacs precompiled due to their popularity, other distributions
may . Once you have R installed you can install emacs (which you may
already have) and the ess plugin.

ess has it's own web site.. you can google ...and a active email
distribution.

Cheers
Paul 



-----Original Message-----
From: Johannes Ranke <jranke at uni-bremen.de>
To: Vera, Pedro L. <pvera at health.usf.edu>
Cc: r-sig-debian at r-project.org <r-sig-debian at r-project.org>
Subject: Re: [R-sig-Debian] Running R in Ubuntu...really basic..sorry
Date: Mon, 11 May 2009 23:39:35 +0200

Hi Pedro,

I really like your post, as I am a passionate user of the vim R plugin
for Linux as well :) Actually, an improved derivative has just been
posted to vim.org
(http://www.vim.org/scripts/script.php?script_id=2628), with omni
completion, some GUI Menu items and some more additional features, in
case anyone is interested. I haven't tested it, but it may be worth the
upgrade.

Johannes

* Vera, Pedro L. <pvera at health.usf.edu> [090510 19:30]:
pay attention, it just went to the original poster. I apologize for
that. Here's my post:
Unstable) for some time now without any problems (even from the terminal
window). Recently though, I've switched to vim (a very useful text
editor) which can be made (with a use of a plugin) to call up an R
window and send commands (actually entire blocks of commands) to R. I've
been very impressed with this option and I would recommend it.
Unfortunately, there's a learning curve (almost as steep as R's) for vim
as well. However, I think the results are well worth the effort.
[r-sig-debian-bounces at r-project.org] On Behalf Of Judson
[judson0423 at gmail.com]