ess

Capture last output as an R object [duplicate]

浪尽此生 提交于 2019-12-01 03:44:26
Possible Duplicate: How to assign the result of the previous expression to a variable in R? I'm working with R in ESS and just made the stupid mistake of running a long running function without assigning the result to a variable. So, it just printed out the result, a long string of output that looks like: [[1]] 1 FALSE [[2]] 1 TRUE [[3]] 1 TRUE [[4]] 1 TRUE Is there any way to coerce this printed output into an R object? Either within R, or using emacs (M-x undo-my-stupid-mistake)? Maybe this will work: out <- .Last.value 来源: https://stackoverflow.com/questions/8735365/capture-last-output-as

Capture last output as an R object [duplicate]

北慕城南 提交于 2019-12-01 01:01:56
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: How to assign the result of the previous expression to a variable in R? I'm working with R in ESS and just made the stupid mistake of running a long running function without assigning the result to a variable. So, it just printed out the result, a long string of output that looks like: [[1]] 1 FALSE [[2]] 1 TRUE [[3]] 1 TRUE [[4]] 1 TRUE Is there any way to coerce this printed output into an R object? Either

Is it possible to get code completion for R in Emacs ESS similar to what is available in Rstudio?

白昼怎懂夜的黑 提交于 2019-11-30 06:39:54
问题 Rstudio has a great code completion feature. It provides a quick view of functions that start with a given string, as well as function and parameter definitions. ESS is powerful enough, familiar to me, and integrated into Emacs, where I conduct most of my work - so I am hesitant to move, but this feature is making me consider such a move. Is it possible to integrate this feature into Emacs ESS? Is there anything similar to this for Emacs ESS? Any hope that there will be (and if so, how could

Recommendations for developing Sweave documents

五迷三道 提交于 2019-11-29 19:55:06
I'm looking to streamline my Sweave document creation, and I'd like to hear about people's current setups. I feel like the holy grail goes something like this: Editing Rnw code on one half of the screen Single keybinding compiles Sweave document and runs pdflatex View PDF on the other half of the screen; once compiled, PDF is refreshed and centered around the portion of the document you're editing If compilation has errors, replace the PDF with the results of the compilation (e.g. latex errors or Sweave errors) I am guessing/hoping that the solution is part Emacs/ESS combined with some code

ESS to call different installations of R

那年仲夏 提交于 2019-11-29 06:21:11
I am not sure if this has already been answered here on stack-overflow. I had Emacs-ESS installed on my Unix machine and when ever I start up emacs, particular version of R gets loaded. I now have some new R packages that I wanted to test before installing into default R environment. Hence I installed newer version of R in a local directory and have my new packages installed there. Now if I want to call this newer R version that I installed in a local directory, from emacs, how exactly should I be doing it? I want to be able to call either the default R version or the locally installed R

Is it possible to get code completion for R in Emacs ESS similar to what is available in Rstudio?

守給你的承諾、 提交于 2019-11-28 21:06:35
Rstudio has a great code completion feature. It provides a quick view of functions that start with a given string, as well as function and parameter definitions. ESS is powerful enough, familiar to me, and integrated into Emacs, where I conduct most of my work - so I am hesitant to move, but this feature is making me consider such a move. Is it possible to integrate this feature into Emacs ESS? Is there anything similar to this for Emacs ESS? Any hope that there will be (and if so, how could I support such an effort?) You do get the completion thanks to the rcompgen package by Deepayan (now

How to stop emacs from replacing underbar with <- in ess-mode

空扰寡人 提交于 2019-11-28 18:32:00
ess-mode is "Emacs speaks statistics." This mode is useful for editing programs for R or Splus (two separate statistics packages). In my buffer, when ever I type _ the character is replaced with <- , which is very frustrating. Is there an emacs lisp statement to turn off this behavior? emacs: 22.1.1 ess-mode release (unknown) From ESS's manual (look under "Changes/New Features in 5.2.0"): ESS[S]: Pressing underscore ("_") once inserts " <- " (as before); pressing underscore twice inserts a literal underscore. To stop this smart behaviour, add "(ess-toggle-underscore nil)" to your .emacs after

Emacs ESS Mode - Tabbing for Comment Region

佐手、 提交于 2019-11-28 04:50:32
I am using the Emacs-Speaks-Statistics (ESS) mode for Emacs. When editing R code, any comment lines (those starting with #) automatically get tabbed to the far right when I create a new line above it. How should I change my .emacs.el file to fix this? For example, I have: # Comment Now, after putting my cursor at the beginning of the line and pressing Enter, I get: # Comment Thanks for any hints. Use '###' if you don't want the comments indented. According to the manual , By default, comments beginning with ‘###’ are aligned to the beginning of the line. Comments beginning with ‘##’ are

ESS to call different installations of R

不打扰是莪最后的温柔 提交于 2019-11-27 23:45:34
问题 I am not sure if this has already been answered here on stack-overflow. I had Emacs-ESS installed on my Unix machine and when ever I start up emacs, particular version of R gets loaded. I now have some new R packages that I wanted to test before installing into default R environment. Hence I installed newer version of R in a local directory and have my new packages installed there. Now if I want to call this newer R version that I installed in a local directory, from emacs, how exactly should

How to stop emacs from replacing underbar with <- in ess-mode

寵の児 提交于 2019-11-27 11:25:28
问题 ess-mode is "Emacs speaks statistics." This mode is useful for editing programs for R or Splus (two separate statistics packages). In my buffer, when ever I type _ the character is replaced with <- , which is very frustrating. Is there an emacs lisp statement to turn off this behavior? emacs: 22.1.1 ess-mode release (unknown) 回答1: From ESS's manual (look under "Changes/New Features in 5.2.0"): ESS[S]: Pressing underscore ("_") once inserts " <- " (as before); pressing underscore twice inserts