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
8
votes
2 answers

Asking ESS/R users for suggestions for elisp codes in .emacs file

I believe that not all R users know elisp. It would be nice if ESS users could share their code in their .emacs file here. Well commented code would be particularly useful. Hope this will promote the use of ESS by R users.
ggg
  • 1,857
  • 2
  • 21
  • 33
8
votes
2 answers

How can I load a server's specific R installation (environment module) when launching a local installation of emacs?

I am using a cluster with environment modules. This means that I must specifically load any R version other than the default (2.13) so to load R 3.0.1, I have to specify module load R/3.0.1 R I have added module load R/3.0.1 to .bashrc, so that if…
David LeBauer
  • 31,011
  • 31
  • 115
  • 189
8
votes
2 answers

How to turn off auto replacement in Emacs Speaks Statistics for R

In Emacs Speaks Statistics for R, how can the auto replacement of _ with <- be turned off?
momeara
  • 1,341
  • 2
  • 17
  • 29
8
votes
1 answer

ESS set tab whitespace level?

I thought you set the level of indentation with (setq ess-indent-level 2) But I keep getting 4 spaces. For instance, I used to write foo <- function(x) x + 2 But now, ESS puts the second line 4 spaces away from the left margin foo <-…
hatmatrix
  • 42,883
  • 45
  • 137
  • 231
8
votes
1 answer

Return Emacs buffer focus to R after compiling with knitr

When compiling an *.Rnw file with the commands M-n r and M-n P my open R buffer is swapped for a buffer that appears to shows knitr compilation information. Is there a way to automatically switch back to the R buffer if knitr compiles without any…
Chernoff
  • 2,494
  • 2
  • 20
  • 24
8
votes
1 answer

Customizing the ESS environment for R

I am trying to optimize my ESS - R environment. So far I make use of the r-autoyas, I set intendation and stuff following style guides, in the mini-buffer there are eldoc hints for function arguments, and I have the option to press a key in order to…
PascalVKooten
  • 20,643
  • 17
  • 103
  • 160
7
votes
4 answers

Is there a way to install R packages using emacs?

I am using ESS, but every time I need to install a new package I have to use R gui. Isn't there a way to do this without leaving emacs?
user443854
  • 7,096
  • 13
  • 48
  • 63
7
votes
2 answers

ESS/AucTeX/Sweave integration

I'm using GNU/Linux distro (Arch, if that's relevant), Emacs v23.2.1, ESS v5.9 and AucTeX v11.86. I want to setup AucTeX to recognize .Rnw files, so I can run LaTeX on .Rnw files with C-c C-c and get .dvi file automatically. I reckon it's quite…
aL3xa
  • 35,415
  • 18
  • 79
  • 112
7
votes
3 answers

Emacs auto-complete for ESS in tooltip instead of buffer

I understand from the following resources: http://www.emacswiki.org/emacs/ESSAuto-complete http://www.emacswiki.org/emacs/AutoComplete Emacs autocomplete-mode extension for ESS and R Is it possible to get code completion for R in Emacs ESS similar…
Mittenchops
  • 18,633
  • 33
  • 128
  • 246
7
votes
5 answers

ESS does not find Rterm.exe on windows

I installed R in a directory called "X:\alphaAndOmega\R\R". So Rterm.exe (32-Bit version) is located in "X:\alphaAndOmega\R\R\bin\i386". I know that it's not a 'standard R-directory' and that "standard R-directories", like R-3.0.0 are easily…
Wolfgang
  • 121
  • 1
  • 4
7
votes
1 answer

How to avoid ESS underscore automatic subsitution with '<-' when pasting text but keep it when writing an underscore

When using ESS under emacs for writing R code, is useful to have the default behavior os having '_' substituted by '<-' (inserting two consecutive '_' would insert the underscore itself). But when pasting code to any buffer in ESS-mode, this…
Pablo Marin-Garcia
  • 4,151
  • 2
  • 32
  • 50
7
votes
2 answers

How do I get my R buffer in emacs to occupy more horizontal space?

At the moment when I start up an ESS buffer (with M-x R) I get that the output of my commands only occupies about 60ish characters in column width (particularly when displaying data frames with long column names). I was wondering if there was a…
Palace Chan
  • 8,845
  • 11
  • 41
  • 93
7
votes
4 answers

How to access a bash environment variable from within R in emacs-ess

In my .bashrc, I have the line: export SETTINGS=/home/user/settings.xml If I load R in bash, I can access this variable using the Sys.getenv function: Sys.getenv("SETTINGS") "/home/user/settings.xml" If I open up R in Emacs (M-x R), SETTINGS is…
Abe
  • 12,956
  • 12
  • 51
  • 72
6
votes
1 answer

GNUEmacs/ESS/Latex/Sweave: text displays differently when cursor is in latex code or in R code

When I scroll through an Sweave document (Rnw) with latex and R code, the text jumps around when the mode changes between Latex and ESS. The two modes disagree how text should be wrapped. Moreover, I've noticed that when I do M-x…
jrm
  • 727
  • 5
  • 18
6
votes
2 answers

execute all R chunks at once from an Rmd document

A minimal Rmarkdown document has a YAML header, markdown syntax and R code chunks. To edit such a multi-language file, I am using the Emacs editor, and the buffer in which the Rmd document is opened, is in polymode. A typical document has more than…
tflutre
  • 3,354
  • 9
  • 39
  • 53
1 2
3
18 19