Skip to content

Interacting with R

8 messages · Kaspar Pflugshaupt, Winfried Theis, Uwe Ligges +3 more

#
Dear R folks,

(Running Windows 98, Pentium II, 128 Mb RAM)

I have been using Splus 2000 for about 1.5 years, and have recently begun using R. I love the Open Source philosophy! I may be switching to to Linux soon.

My question:

How do people most often interact with R? 


In Splus 2000, I used "Script" windows to write functions. "Script" windows were great because:

  1.. they are simple to start and save,
  2.. I could highlight segments of code and run segments,
  3.. They have the nifty feature of highlighting each opening parenthesis as you type the corresponding closing parenthesis,
  4.. They were in Splus itself.
Where would I look for a description of how folks interact with R to perform comparable tasks? Is there an introduction or appendix somewhere that walks a user through daily use that is a little beyond the simple command line stuff in V&R 3rd edition or "R for beginners" (E. Paradis 2000)? I thought I checked the standard documentation, but may have missed the relevent part. 

I have been writing functions and scripts in Word, saving as text (with the .txt suffix I cannot get rid of) and then using "source()" to implement functions. This is okay, but seems a little clumsy. 

Thanks for any input,

Henry

"With freedom comes responsibility."

Dr. M. Henry H. Stevens
Postdoctoral Associate
Department of Ecology, Evolution, & Natural Resources
14 College Farm Road
Cook College, Rutgers University
New Brunswick, NJ 08901-8551

email: hstevens at rci.rutgers.edu
phone: 732-932-9631
fax: 732-932-8746
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20010420/2e0e3a54/attachment.html
#
On Friday 20 April 2001 16:06, Martin Henry H. Stevens wrote:

            
You can use ESS (Emacs speaks Statistics) under Emacs to quite the same 
effect. I use it under Linux, but it  is said to work under Windows, too. It 
has even more features than S-Plus 2000's script windows, such as keyword 
completion and syntax coloring. You find a link to it on the R-project site 
somewhere.

I have used S-Plus 2000, too, and in my opinion, ESS is better. But, of 
course, you'll have to learn to use Emacs to use it... (buy the O'Reilly book 
and go for it :-).

Cheers

Kaspar Pflugshaupt
#
Hello!
On 20-Apr-01 Martin Henry H. Stevens wrote:
I know of two very popular (and IMHO nice) ways to interact with R:
On Windows the WinEdt extension written by Uwe Ligges 
and for most platforms ESS (Emacs Speaks Statistic) -- you have to have an
Emacs... ;-)

Both can be found on the Downloadpage "Other". Both give you an easy way to
edit functions and test them straight away.

Just try them, they are great!

Winfried
----------------------------------
E-Mail: Winfried Theis <theis at statistik.uni-dortmund.de>
Date: 20-Apr-01
Time: 16:50:46
Dipl.-Math. Winfried Theis, Fachbereich Statistik, Graduiertenkolleg
"Angewandte Statistik"
Universität Dortmund, 44221 Dortmund
Tel.: +49-231-755-5903  FAX: +49-231-755-4387
----------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
There is ESS for the Emacs, which is very nice for interacting with R.
If you have WinEdt available, you might also want to have a look at
R-WinEdt (only on windows).

Both abvailable at http://CRAN.R-Project.org/other-software.html

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 20 Apr 2001, Martin Henry H. Stevens wrote:

            
Apart from ESS, you can highlight segments of code and run segments by
using the Display file menu item in Rgui, and I find that more convenient
than ESS (and just one key stroke).  You can't edit in an R pager, though.
#
At 04:13 PM 4/20/01 +0100, Prof Brian D Ripley wrote:
[snip]
Sorry, I've looked, but can't find: what is the key stroke to run the code?

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Many people replied. Thank you all very very much for the input. The sheer volume provided me with strong encouragement to make a leap into a programming environment.
Summary:
1. Nearly everyone suggested that I bite the bullet, get Emacs and ESS.
2. Most people also suggested using R-WinEdt with WinEdt (only on windows). 
3. Use the Display file menu item in Rgui to run parts of a program. This is more convenient
than ESS (and just one key stroke), although you can't edit in an R pager. (Thanks to BD Ripley).

Henry Stevens

  ----- Original Message ----- 
  From: Uwe Ligges 
  To: Martin Henry H. Stevens 
  Cc: r-help at hypatia.math.ethz.ch 
  Sent: Friday, April 20, 2001 11:05 AM
  Subject: Re: [R] Interacting with R
> "Martin Henry H. Stevens" wrote:
> 
  > Dear R folks,
  > 
  > (Running Windows 98, Pentium II, 128 Mb RAM)
  > 
  > I have been using Splus 2000 for about 1.5 years, and have recently
  > begun using R. I love the Open Source philosophy! I may be switching
  > to to Linux soon.
  > 
  > My question:
  > 
  > How do people most often interact with R?
  > 
  > In Splus 2000, I used "Script" windows to write functions. "Script"
  > windows were great because:
  > 
  >   1. they are simple to start and save,
  >   2. I could highlight segments of code and run segments,
  >   3. They have the nifty feature of highlighting each opening
  >      parenthesis as you type the corresponding closing parenthesis,
  >   4. They were in Splus itself.
  > 
  > Where would I look for a description of how folks interact with R to
  > perform comparable tasks? Is there an introduction or appendix
  > somewhere that walks a user through daily use that is a little beyond
  > the simple command line stuff in V&R 3rd edition or "R for beginners"
  > (E. Paradis 2000)? I thought I checked the standard documentation, but
  > may have missed the relevent part.
  > 
  > I have been writing functions and scripts in Word, saving as text
  > (with the .txt suffix I cannot get rid of) and then using "source()"
  > to implement functions. This is okay, but seems a little clumsy.


  There is ESS for the Emacs, which is very nice for interacting with R.
  If you have WinEdt available, you might also want to have a look at
  R-WinEdt (only on windows).

  Both abvailable at http://CRAN.R-Project.org/other-software.html

  Uwe Ligges

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20010420/392bbc90/attachment.html
#
On Fri, 20 Apr 2001, Griffith Feeney wrote:

            
Ctrl-V, I believe.