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
58
votes
3 answers

How can I use Emacs ESS mode with R markdown?

Is there a way to configure Emacs so that it recognizes (and allows execution of) R code chunks within R markdown (.Rmd) files similar to the way it recognizes code chunks in .Rnw (Sweave) or .org (org-mode) files?
David LeBauer
  • 31,011
  • 31
  • 115
  • 189
57
votes
4 answers

Emacs ESS Mode - Tabbing for Comment Region

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…
Christopher DuBois
  • 42,350
  • 23
  • 71
  • 93
56
votes
6 answers

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

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…
Setjmp
  • 27,279
  • 27
  • 74
  • 92
36
votes
3 answers

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

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…
Abe
  • 12,956
  • 12
  • 51
  • 72
28
votes
3 answers

How can I background the R process in ESS / Emacs?

I often run long R scripts when I start my R environment. I would like to be able to load / run the R script in Emacs / ESS and continue other work in another buffer. When I press C-g or C-c C-c the process is interrupted, and I must restart the…
Conor
  • 1,509
  • 2
  • 20
  • 28
26
votes
5 answers

Useful keyboard shortcuts and tips for ESS/R

I would like to ask regular ESS/R users what key bindings do they use frequently and tips on using ESS/R.
ggg
  • 1,857
  • 2
  • 21
  • 33
21
votes
2 answers

changing indentation in emacs ess

I would like to know how can I change indentation in emacs ess. I generally like default one (ess-set-style 'C++ 'quiet) But sometimes it formats really weirdly. For example this is what I would like to have, and this will be default formatting if…
ilya
  • 3,124
  • 2
  • 26
  • 26
20
votes
3 answers

Emacs ESS version of Clear Console

Is there an ESS version of the Clear Console command that can be found in the RGui(Ctrl-L)? I want to have a blank * R * buffer.
Nathaniel Saxe
  • 1,527
  • 2
  • 15
  • 25
19
votes
5 answers

Make Emacs ESS follow R style guide

I've been using Emacs/ESS for quite a while, and I'm familiar with Hadley's R style recommendations. I'd like to follow these conventions in ESS, like those nice spaces around operators, space after comma and after if statement, before curly braces,…
aL3xa
  • 35,415
  • 18
  • 79
  • 112
18
votes
1 answer

How can I switch between R sessions in emacs-ess?

I have two sessions open in Emacs-ESS: one on my desktop and one on a server using tramp. How can I tell ESS which session to use?
David LeBauer
  • 31,011
  • 31
  • 115
  • 189
18
votes
3 answers

In ESS/Emacs, how can I get the R process buffer to scroll to the bottom after a C-c C-j or C-c C-r

In ESS when I am evaluating chunks of code in a .R file using C-c C-j or C-c C-r (to send the line or region to a running R process), how can I get the R buffer to scroll down automatically, such that after evaluating a region the cursor is at the…
stevejb
  • 2,414
  • 5
  • 26
  • 41
18
votes
6 answers

Recommendations for developing Sweave documents

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…
Christopher DuBois
  • 42,350
  • 23
  • 71
  • 93
17
votes
2 answers

How to create a pdf from a Rmd file using Emacs, ESS, pandoc-mode and polymode?

This is an adaptation of a "classic" Rmd file that I want to knit as a pdf using Emacs (Emacs Speak Statistics) and polymode. I can't find the right commands to do that. There is little documentation about polymode. I am using Emacs Starter Kit for…
sbac
  • 1,897
  • 1
  • 18
  • 31
16
votes
2 answers

EMACS folding/unfolding R code

Is there an Emacs minor-mode (or piece of elisp code) that lets you selectively hide/show environments while in Sweave (Sweave = R + LaTeX)? For instance, I would like to move to the beginning of a code block (<<>>), hit a keystroke, and have the…
Riccardo
  • 1,885
  • 3
  • 15
  • 22
16
votes
2 answers

Emacs autocomplete-mode extension for ESS and R

Is there an R-extension to Emacs autocomplete-mode that can be used with ESS? If the extension doesn't exist I'd also appreciate any hints for writing one!
Matti Pastell
  • 9,135
  • 3
  • 37
  • 44
1
2 3
18 19