[R] Running Scripting on Linux Machine

Bronagh Grimes Bronagh.Grimes at distinct.ie
Thu Apr 23 10:53:18 CEST 2009


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:
> 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.

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

> 
>  
> 
> -          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,
> 
>  
> 
> 
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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.
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 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
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%




More information about the R-help mailing list