Steve Roberts
2002-Jul-04 13:13 UTC
[R] Script file editors for Windows - submit highlighted text?
Greetings, I use S+, Stata, SAS and R depending on the weather... The script file editors in S+, SAS and Stata all allow me to submit a portion of a developing script file to the running process. In R I have to use an external editor and either source the entire file or do lots of copy-and-pasting. Are there any editors out there which interface to R more closely and let me submit a section of code in one key (or mouse) stroke? Language-aware features would be nice as well! I know about EMACS/ESS but have never been able to get on with EMACS - when in Windoze I like my pointy-clicky interface! Thanks for any pointers Steve. Dr Steve Roberts steve.roberts at man.ac.uk +---------------------------------------------+-----------------------------------------------------+ | Senior Lecturer in Medical Statistics, | Health Services Research Unit, | | Biostatistics Group, | Central Manchester and Manchester | | School of Epidemiology and Health Sciences, | Children's University Hospitals NHS Trust, | | 2nd Floor,Stopford Building, | 1st Floor, Postgraduate and Health Sciences Centre, | | University of Manchester. | Manchester Royal Infirmary. | | M13 9PT. | M13 9WL. | | 0161 275 5192 | 0161 276 5785 | +---------------------------------------------+-----------------------------------------------------+ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
ripley@stats.ox.ac.uk
2002-Jul-04 13:53 UTC
[R] Script file editors for Windows - submit highlighted text?
On Thu, 4 Jul 2002, Steve Roberts wrote:> I use S+, Stata, SAS and R depending on the weather... The > script file editors in S+, SAS and Stata all allow me to submit a > portion of a developing script file to the running process. In R I have > to use an external editor and either source the entire file or do lots > of copy-and-pasting.Not on Windows: you can display a file in RGui, highlight a portion and submit it (with ^V). Any volunteers to make it editable?> Are there any editors out there which interface > to R more closely and let me submit a section of code in one key > (or mouse) stroke? Language-aware features would be nice as well! > I know about EMACS/ESS but have never been able to get on with > EMACS - when in Windoze I like my pointy-clicky interface!See http://cran.r-project.org/other-software.html -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
2002-Jul-04 14:21 UTC
[R] Script file editors for Windows - submit highlighted text?
"Steve Roberts" <steve.roberts at man.ac.uk> writes:> Greetings, > > I use S+, Stata, SAS and R depending on the weather... The > script file editors in S+, SAS and Stata all allow me to submit a > portion of a developing script file to the running process. In R I have > to use an external editor and either source the entire file or do lots > of copy-and-pasting. Are there any editors out there which interface > to R more closely and let me submit a section of code in one key > (or mouse) stroke? Language-aware features would be nice as well! > I know about EMACS/ESS but have never been able to get on with > EMACS - when in Windoze I like my pointy-clicky interface!Try a recent version of Emacs/ESS and use its pointy-clicky interface.... There are syntax highlighters for other editors, but I doubt any can work as closely with the R process as ESS can. Even if C-c C-r for "ess-eval-region" is too hard to remember, there's a menu entry for it in recent versions. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hans W. Borchers
2002-Jul-04 15:49 UTC
[R] Script file editors for Windows - submit highlighted text?
Use WinEDT with R-WinEDT Extension on Windows ... ! | I use S+, Stata, SAS and R depending on the weather... The | script file editors in S+, SAS and Stata all allow me to submit a | portion of a developing script file to the running process. In R I have | to use an external editor and either source the entire file or do lots | of copy-and-pasting. Are there any editors out there which interface | to R more closely and let me submit a section of code in one key | (or mouse) stroke? Language-aware features would be nice as well! | I know about EMACS/ESS but have never been able to get on with | EMACS - when in Windoze I like my pointy-clicky interface! | | Thanks for any pointers Yes, there is one very nice Editor for Windows that can do almost exactly what you want. It is the WinEDT editor (http://www.winedt.com) that is known especially in the TeX/LaTeX community for Windows. There is an R-WinEDT extension available on CRAN at the Software->Other page (http://cran.r-project.org/other-software.html) and I am really a bit astonished this is not better known. It lets you select text (or the whole file) in the editor that will be executed from an open R process by just one mouse click. WinEDT is shareware and there is a demo version available for 30 days (and more), and it costs about $30. I would say it's worth the money anyway. Hans W. Borchers -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Dieter Menne
2002-Jul-08 06:52 UTC
[R] Script file editors for Windows - submit highlighted text?
I use the free version of Notetab (www.notetab.com) which supports macros, and the macro file below. Ctrl-space (repeat last macro) will send any highlighted text to an open GUI. ^!FocusDoc ;Save the file if it has been modified ;^!Save ;Select the highlighted block. ^!If ^$GetSelSize$ = 0 END ELSE SelectLines :SelectLines :GetSelection ^!Set %AnyText%=^$GetSelection$ ;Write the selected text to a temporary file in the Windows temp. dir. ^!Set %fileName%=^$GetTmpPath$std0001.r ^!Set %fileName%=^$StrReplace(\;/;^%fileName%;True;False)$ ^!TextToFile ^%fileName% ^%AnyText% ; Copy "source" to the clipboard ^!SetClipboard source("^%fileName%") ; Switch to R ^!FocusApp RGui* ;ESC to clear the Command window, paste the command, hit enter ^!Keyboard ESC ^!Keyboard CTRL+V ^!Keyboard ENTER In addition, here my favorite reg-file to start R with right mouse button in Explorer in a given directory REGEDIT4 [HKEY_CLASSES_ROOT\Directory\shell\Run R] [HKEY_CLASSES_ROOT\Directory\shell\Run R\command] @="\"C:\\Program Files\\R\\rw1050\\bin\\Rgui.exe\" --internet2" Dieter Menne --------------------------------------- Dr. Dieter Menne Biomed Software 72074 T?bingen Tel (49) (7071) 52176 FAX (49) (7071) 55 10 46 dieter.menne at menne-biomed.de www.menne-biomed.de -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._