script editor
On Wed, 2008-04-23 at 09:23 -0700, Brian Knaus wrote:
Hi folks, I currently use and enjoy emacs with ess on Ubuntu Linux. I really like it because it provides tool such as coloring of comments, quotes, functions in different colors of text. It has parentheses matching. And it also allows for sending lines, sections or entire buffers of commands to R for execution. You can find info on ESS including the previously mentioned Windows version at: http://ess.r-project.org/ I do think it is noteworthy to point out that there are multiple 'flavors' of emacs out there which I have yet to really figure out (e.g., emacs, xemacs). Some of these provide the traditional (Unix) key bindings for copy & paste, which to most Windows users will appear confusing. I am currently using a version of emacs which appears to be version 22.1.1 which claims to have been 'modified by Ubuntu' which allows ctrl-c ctrl-v copy and paste. This makes transition from Windows much easier.
I use GNU emacs 22.2.1, which is the latest release for Debian Linux. To get C-c C-v etc., just choose the CUA option in the Options menu. But I use the emacs bindings almost exclusively. Just needs a bit of practice. What's really weird is copying text in emacs using M-w and pasting it into another application using C-v. You sort of have to be bilingual. :-) "Learning GNU emacs" (O'Reilly books) can be useful for beginners. They also publish a GNU Emacs pocket reference. There are also lots of free web resources. Cheers, Simon.
In short, emacs is very powerful but will probably appear complicated to new users. There are ways around this and it is worth the effort to learn the key bindings if you use R frequently. -- Brian J. Knaus Ph.D. Candidate Department of Botany and Plant Pathology Oregon State University 2082 Cordley Hall Corvallis, OR 97331-2902 http://oregonstate.edu/~knausb Quoting Gavin Simpson <gavin.simpson at ucl.ac.uk>:
On Wed, 2008-04-23 at 07:36 -0700, Christian A. Parker wrote:
I also like Tinn-R on a windows machine. But I have another question, Ive recently switched one of my computers over to Ubuntu (Linux). Currently I am just using Kate+Konsole and to be honest it works great accept for the lack a send lines command. So I was wondering if anyone out there knew of a sendlines mod for Kate
Kate has the Pipe to console menu item, which works either by sending the whole buffer or by sending the highlighted region. You can assign this a shortcut under the Settings Menu > Configure Shortcuts..., find the relevant command, click the image of the keyboard key and add in a keyboard short cut of your choosing. Make sure you don't overwrite anything useful - I just tried this with Alt+R. Now you can use (e.g.) Alt+R to pipe regions or the whole buffer to the konsole running at the bottom of the screen. Just start R in the embedded konsole first and it is read to be piped to.
or had some advice or knew of a tutorial for EMACS+ESS for the reluctant Tinn-R user?
Personally I use Emacs+ESS on my Fedora boxes, but I still can't remember how to copy/paste all the time using Emacs commands... so not the best person to be providing advice. G
-Chris ONKELINX, Thierry wrote:
Here's another fan of TINN-R. The TINN-R website suggests a few line of code to add into the Rprofile file which causes TINN-R to launch as soon as you start up R. Furthermore it has syntax highlighting that works for brackets too (display what opening bracket corresponsed with a closing bracket). And one can define shortcutkeys for sending code to R. Let's say that I don't want to miss TINN-R for all R, S+, Latex, Sweave, HTML and PHP stuff. Cheers, Thierry ------------------------------------------------------------------------ ---- ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, methodology and quality assurance Gaverstraat 4 9500 Geraardsbergen Belgium tel. + 32 54/436 185 Thierry.Onkelinx at inbo.be www.inbo.be To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural of anecdote is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey -----Oorspronkelijk bericht----- Van: r-sig-ecology-bounces at r-project.org [mailto:r-sig-ecology-bounces at r-project.org] Namens Dave Hewitt Verzonden: woensdag 23 april 2008 15:07 Aan: r-sig-ecology at r-project.org Onderwerp: Re: [R-sig-eco] script editor
Does anyone have a recommendation for an R script editor that can be
run on
a pc?
I also like Tinn-R. It's simple and easy to use. Just in case this will save you a bit of frustration, be sure to install R in SDI mode (choose custom installation in the Install Wizard to get the option). The default is MDI mode and Sci-Views says new Tinn-R versions don't play well with R. I've never tried it, so I don't know what happens if you use MDI mode. One handy feature of Tinn-R (and probably other editors) is that you can click the R-> icon on the upper right to launch R. That passes your current working directory to R when it loads up, so you never need full path names in data read statements. Just put the .R script and the data in the same directory, open Tinn-R by double-clicking the .R script, and then launch R from Tinn-R.
_______________________________________________ R-sig-ecology mailing list R-sig-ecology at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology _______________________________________________ R-sig-ecology mailing list R-sig-ecology at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
_______________________________________________ R-sig-ecology mailing list R-sig-ecology at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
-- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% 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 %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
_______________________________________________ R-sig-ecology mailing list R-sig-ecology at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
_______________________________________________ R-sig-ecology mailing list R-sig-ecology at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
Simon Blomberg, BSc (Hons), PhD, MAppStat. Lecturer and Consultant Statistician Faculty of Biological and Chemical Sciences The University of Queensland St. Lucia Queensland 4072 Australia Room 320 Goddard Building (8) T: +61 7 3365 2506 http://www.uq.edu.au/~uqsblomb email: S.Blomberg1_at_uq.edu.au Policies: 1. I will NOT analyse your data for you. 2. Your deadline is your problem. The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. - John Tukey.