Hi > -----Original Message----- > From: [EMAIL PROTECTED] on behalf of Ferdinand > Sent: Mon 10/27/2008 4:50 PM > To: [email protected] > Subject: [R-SIG-Mac] best way to work with R on a Mac (leopard) > > Hi, > > till now, I just work with the normal R environment. > But there are some issues that disturb me working with the normal R > console. > I heard about alternative ways to work with R, like text editors which > are able to communicate with R. > > > What I am looking for is a way to seperate the output from the input. > > I think the best way would be to have two or three frames in one window. > One frame for the output, one for the input and one for just editing > text (perhaps with R-language highlighting). > > > Is there a way to realize that kind of working environment? > And if yes, what do I need to realize that (software, preferences etc.)? > > > > I tried Aquamacs Emacs. > I can start R in Emacs with ESS but I didn't found a way to seperate > what I type in from what I get from R as output in the way I would > like it to be...
You can split an emacs frame window into several windows with e.g. C-x 2 (splits window horizontally) C-x 3 (splits window vertically) Then you can write your code in one buffer, and submit it to the running R session in another buffer via C-n on a given line of R code C-r submits a region of code etc. However, the R inputs and outputs both show in the R session buffer. (Perhaps some ESS guru knows how to make the R buffer show output only?) One nice thing about the R session in an emacs buffer is that you can edit it too, so if you evaluate something inappropriate you can delete it from the R session window with standard Emacs editing commands. Here's some example Emacs commands to help automate setting up a divided frame (put these into your .emacs file or into an emacs lisp file that you can load when needed) ;;; ------------------------------------------------------------- ;;; Commands to set up windows useful for R script processing. (modify-frame-parameters (selected-frame) '((width . 232) (height . 56) (top . 0) (left . 64) )) (split-window-horizontally -88) (split-window-vertically) ;;; ------------------------------------------------------------- Steven McKinney Statistician Molecular Oncology and Breast Cancer Program British Columbia Cancer Research Centre email: smckinney +at+ bccrc +dot+ ca tel: 604-675-8000 x7561 BCCRC Molecular Oncology 675 West 10th Ave, Floor 4 Vancouver B.C. V5Z 1L3 Canada _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac _______________________________________________ R-SIG-Mac mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-mac
