Questions tagged [ess]

ESS (Emacs Speaks Statistics) is an emacs add-on for editing scripts and interacting with statistical programs such as R, Stata or SAS.

Emacs Speaks Statistics (ESS) is an add-on package for emacs text editors such as GNU Emacs and XEmacs. It is designed to support editing of scripts and interaction with various statistical analysis programs such as R, S-Plus, SAS, Stata and JAGS.

ESS is freely available under the GNU General Public License (GPL).

Resources:

280 questions
15
votes
3 answers

ESS workflow for R project/package development

Can anyone share his experience on workflow for R peject development under ESS? I tried several times to learn emacs but I have not get it yet. I can understand ESS as an editor, but is there a project view in ESS? what's the efficient ways to set…
ahala
  • 4,683
  • 5
  • 27
  • 36
14
votes
2 answers

What's so inferior about inferior-lisp?

As I've started learning about lisp, emacs, and ess (Emacs Speaks Statistics), I've come across this concept of inferior-this-or-that. For instance, there's an inferior-ess-mode, inferior-lisp, and Inferior Emacs Lisp Mode. In all these cases, it…
Ben Ogorek
  • 497
  • 7
  • 21
14
votes
6 answers

Structuring a Statistical Analysis with R Using Emacs/ESS

I am looking for a way to structure my statistical analysis. I currently use Emacs/ESS and the analysis file turned out quite long. I have started to put parts of the code into sourceable functions in a separate file, but still... I would like to…
stats-hb
  • 958
  • 13
  • 31
12
votes
2 answers

ESS to call different installations of R

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…
Sashi Kiran Challa
  • 905
  • 1
  • 11
  • 21
12
votes
1 answer

R: ess emacs, jump to function implementation/source

Ctrl-c Ctrl-v lets me view documentation for a function at cursor's position. But what key sequence for me to view the source code of the function (i.e like the F2 key in Rstudio)? I do not want to use the debug function yet.
biocyberman
  • 5,675
  • 8
  • 38
  • 50
11
votes
5 answers

Emacs, R, Org-mode: how to enable automatic switch to ESS-mode within R code blocks?

When using R code chunks in an .Rnw document, the emacs buffer automatically detects that the cursor is within a code chunk (i.e. within <<>> and @), and switches to ESS-mode -- this is very valuable because one can get ESS-based code-formatting…
Prasad Chalasani
  • 19,912
  • 7
  • 51
  • 73
10
votes
1 answer

Could Emacs Speaks Statistics loop through a R for loop like a real debugger?

I am a happy user of ESS for coding and debugging R code. I have found a elusive bug recently deeply inside several for loops and ifs structures. Is there any way of having ESS selectively travel the if/else structures or loop for all the values in…
Pablo Marin-Garcia
  • 4,151
  • 2
  • 32
  • 50
10
votes
3 answers

Force stop or halt on error

I was wondering if anyone knew of a good way to get R or ESS to stop executing the rest of the code beyond the point at which an error occurs if I am evaluating a region or buffer (I've only found the opposite request in the help archives). I was…
hatmatrix
  • 42,883
  • 45
  • 137
  • 231
9
votes
1 answer

Capture last output as an R object

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…
Wilduck
  • 13,822
  • 10
  • 58
  • 90
9
votes
5 answers

Pop-up windows in R & Emacs

I am using ESS in order to stay in Emacs when working with R. Whenever I create a plot a new pop-up appears with the graph. This new window seems to be a part of the R process called inside Emacs. As such the new window is not part of the…
mropa
  • 11,562
  • 10
  • 33
  • 29
9
votes
3 answers

Getting the contents of a library interactively in R

Is there an equivalent of dir function (python) in R? When I load a library in R like - library(vrtest) I want to know all the functions that are in that library. In Python, dir(vrtest) would be a list of all attributes of vrtest. I guess in…
signalseeker
  • 4,100
  • 7
  • 30
  • 36
9
votes
1 answer

ess-rdired: I get this error "no ESS process is associated with this buffer now"

To use ess-rdired to browse objects, I followed the ESS manual and added the following to my .emacs: (autoload 'ess-rdired "ess-rdired" "View *R* objects in a dired-like buffer." t) When I do M-x ess-rdired, a buffer listing the objects in your…
Yoh
  • 199
  • 1
  • 13
8
votes
1 answer

When running R, how to exit from Emacs-ESS gracefully?

Sometimes, right after I submit a computation-intensive run to R in ESS, my whole screen freezes. When that happens, none of the Emacs commands work (I use laptop running XP). My crude solution is to press Control-Alt-Del, go to the Task Manager,…
Ram Narasimhan
  • 22,341
  • 5
  • 49
  • 55
8
votes
1 answer

Fix undesirable EMACS tabbing behavior in ESS/Stata

ESS/Stata mode in emacs incorrectly indents lines that follow lines ending in operators. It seems to incorrectly interpret these lines as multiline commands. For example: gen foo = 1 /* generate another variable */ gen bar = 1 The line "gen bar…
pnj
  • 83
  • 4
8
votes
2 answers

How do I rename R sessions in ESS?

I previously asked how to switch R sessions in ESS, and the use of C-x C-s has sped up my workflow greatly. However, if I have multiple R sessions (even as few as 3), it can be difficult to remember which on is R, which is R:2, and which is R:3. Is…
David LeBauer
  • 31,011
  • 31
  • 115
  • 189
1
2
3
18 19