Skip to content
Back to formatted view

Raw Message

Message-ID: <f5bc463e0809061404j7049c4dfr61f371b2ab732e0e@mail.gmail.com>
Date: 2008-09-06T21:04:57Z
From: Nicky Chorley
Subject: I don't know how to run a r-code written in emacs
In-Reply-To: <19348030.post@talk.nabble.com>

2008/9/6 Luisa <lupasaviz at yahoo.com>:
>
> Hi,
> I just installed R, I'm  work in UBUNTU and  I don't have idea about how to
> run a r-code written in emacs
> into the shell.
> Well I am in a shell, and obviously I can run simple commands over there,
> Must I  compile the program? if yes, How must I do that?
> what is the extension?

You don't need to compile anything and you can use .R as an extension
for your R scripts (I believe someone else has suggested this already
though). What I usually do to run my scripts, is something like the
following:

R < foo.R,

where foo.R is the name of the script. The man page for R suggests
this usage (admittedly, though, it's perhaps not obvious) and there
are options listed in it that you may want to use.

For what it's worth, it makes no difference which editor you use to
write your code in.

Regards,

Nicky Chorley