Skip to content

Running Scripting on Linux Machine

9 messages · Bronagh Grimes, Stefan Grosse, Gavin Simpson +1 more

#
On Thu, 2009-04-23 at 09:31 +0100, Bronagh Grimes wrote:
Not so in Emacs with ESS installed. You can run lines, regions,
paragraphs etc. in an R instance within emacs itself. See the ess
website for further details:

http://ess.r-project.org

I don't know about the other K* applications...

G
#
Gavin, 

This is great, thank you.

I will have a look at downloading this now.

Much appreciated,
Bronagh

-----Original Message-----
From: Gavin Simpson [mailto:gavin.simpson at ucl.ac.uk] 
Sent: 23 April 2009 09:47
To: Bronagh Grimes
Cc: r-help at r-project.org
Subject: Re: [R] Running Scripting on Linux Machine
On Thu, 2009-04-23 at 09:31 +0100, Bronagh Grimes wrote:
the
Script'
Not so in Emacs with ESS installed. You can run lines, regions,
paragraphs etc. in an R instance within emacs itself. See the ess
website for further details:

http://ess.r-project.org

I don't know about the other K* applications...

G
run
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
#
Hi Gavin,

I downloaded ESS & can now see a buffer named '*ESS*' in my EMACS script
file.

To start an ESS process I followed the notes in the documentation:

1. To start an S session on Unix or on Windows when you use the Cygwin
bash shell, simply type M-x S RET.

2. S will then (by default) ask the question

3. S starting data directory?

4. Enter the name of the directory you wish to start S from (that is,
the directory you would have cd'd to before starting S from the shell).
This directory should have a '.Data' subdirectory.

5. You will then be popped into a buffer with name '*S*' which will be
used for interacting with the ESS process, and you can start entering
commands.


I can open R via step 1, but step 2 does not then happen.

Any advice on how I go about opening the ESS for working on?

Many thanks in advance,
Bronagh

-----Original Message-----
From: Gavin Simpson [mailto:gavin.simpson at ucl.ac.uk] 
Sent: 23 April 2009 09:47
To: Bronagh Grimes
Cc: r-help at r-project.org
Subject: Re: [R] Running Scripting on Linux Machine
On Thu, 2009-04-23 at 09:31 +0100, Bronagh Grimes wrote:
the
Script'
Not so in Emacs with ESS installed. You can run lines, regions,
paragraphs etc. in an R instance within emacs itself. See the ess
website for further details:

http://ess.r-project.org

I don't know about the other K* applications...

G
run
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
#
On Thu, 23 Apr 2009 09:31:54 +0100 "Bronagh Grimes"
<Bronagh.Grimes at distinct.ie> wrote:
BG> -          But the only way I can run this script is to call the
BG> whole script using the source() function.
BG> 
BG> -          Does anyone know how I can implement a script that I can
BG> run as in the Windows version, whereby I can run one line at a time
BG> if I wish for testing purposes?

What a long and complicating mail for the simple question: is there a
gui on Linux?

However besides Emacs/ESS there is rkward which is probably easier to
use for a closer to Windows gui feeling (it is much better of course).

Since you have not given specifics about your Linux: on Fedora as well
as on Ubuntu(s) it is in the standard repositories.

hth
Stefan

PS There is also JGR as a cross-platform Java Gui. However on Fedora it
is unusable since it consumes far to much CPU.
#
On Thu, 2009-04-23 at 11:08 +0100, Bronagh Grimes wrote:
What OS? In my Emacs on Fedoras 7 through 10 the starting directory
question appears in what is often called the status bar (along the
bottom edge). It even proposes a starting directory for you.

M-x R is what i use to start R.

G
#
Hi there,

I am working in SLES / SLED 10.

I use ALT+X then SHIFT+R?

Many thanks,
Bronagh

-----Original Message-----
From: Gavin Simpson [mailto:gavin.simpson at ucl.ac.uk] 
Sent: 23 April 2009 11:44
To: Bronagh Grimes
Cc: r-help at r-project.org
Subject: RE: [R] Running Scripting on Linux Machine
On Thu, 2009-04-23 at 11:08 +0100, Bronagh Grimes wrote:
script
shell).
What OS? In my Emacs on Fedoras 7 through 10 the starting directory
question appears in what is often called the status bar (along the
bottom edge). It even proposes a starting directory for you.

M-x R is what i use to start R.

G
whole
#
Emacs speaks statistics ( http://ess.r-project.org/  ) is a very good
choice for you.  It allows single line,  selected lines or running of an
entire script from within emacs.


Steve Friedman Ph. D.
Spatial Statistical Analyst
Everglades and Dry Tortugas National Park
950 N Krome Ave (3rd Floor)
Homestead, Florida 33034

Steve_Friedman at nps.gov
Office (305) 224 - 4282
Fax     (305) 224 - 4147


                                                                           
             "Bronagh Grimes"                                              
             <Bronagh.Grimes at d                                             
             istinct.ie>                                                To 
             Sent by:                  <r-help at r-project.org>              
             r-help-bounces at r-                                          cc 
             project.org                                                   
                                                                   Subject 
                                       [R] Running Scripting on Linux      
             04/23/2009 09:31          Machine                             
             AM CET                                                        
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hi all,



I am new to using R on a Linux machine & I have a few questions on
set-up.  If anyone has experience in this area any advice would be
greatly appreciated.



-          When I open R I have the option to do the following:

o   'Run in Terminal'

o   'Display'

o   'Cancel'

o   'Run'



-          My only option to open a window such as we find in the
Windows version is to choose 'Run in Terminal'.



-          I really want to run a script where I can run sections of the
code each time.



-          As we know in Windows we have the option to 'Open New Script'
& from here can choose 'Run line or Selection'



-          In this version I can indeed save a script & open with
'Emacs', 'KWrite' OR 'Kate'.



-          But the only way I can run this script is to call the whole
script using the source() function.



-          Does anyone know how I can implement a script that I can run
as in the Windows version, whereby I can run one line at a time if I
wish for testing purposes?



Any help would be greatly appreciated.



Many thanks in advance,







______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
#
On Thu, 2009-04-23 at 12:17 +0100, Bronagh Grimes wrote:
Yes, Alt == M (Meta)

Alt-x R (upper case R) is what I use to start R. Alt-x S will try to
start S-Plus (at least it does on my Linux box), which will fail if you
don't have S-Plus.

If you start R via 'M-x R', it will ask for a starting directory as per
your points 2-3. It will prompt you with the current/default location or
you can add your own location to start R. This takes place in the
'status' bar at the bottom of the Emacs window. Once done, the buffer
will show the R process.

There is a separate list for ESS issues so should you have further
questions these should be directed there:

http://ess.r-project.org/index.php?Section=getting%20help

G