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:

177 questions
35
votes
3 answers

ESS plot directly to an Emacs buffer?

Q: how can I get ESS (R) to plot directly to an Emacs buffer? When interacting with R through ESS, R defaults to spawning a separate graphics window outside of Emacs to draw its plots. (One can, of course, choose other graphical devices, which is…
Dan
  • 32,584
  • 6
  • 98
  • 168
21
votes
2 answers

how to setup Knitr workflow in Emacs?

RStudio provides a one-button way for produce PDF file from LaTeX+R source with Knitr. It looks great for doing reproducible research. And I am trying to configure my Emacs for: at left buffer LaTeX+R code in Knitr way; at right buffer PDF output…
drobnbobn
  • 575
  • 4
  • 15
15
votes
3 answers

Can Emacs use tramp to run in an interactive session on a remote HPC node?

I have been using Emacs with ESS and tramp to load remote files and run remote R processes on HPC computers. With ssh keys, tramp makes this easy with C-x C-f to find file at /ssh:myserver:/path/to/file followed by M-x R to launch an R…
David LeBauer
  • 433
  • 2
  • 10
11
votes
1 answer

Insert code chunk in R Markdown with yasnippet and polymode

I am trying to write a yasnippet to insert code chunks into an R Markdown file. I use polymode to have multiple major modes (markdown, ESS[S]) in a single file. This is my snippet: # -*- mode: snippet -*- # name: chunk # key: chunk # -- \`\`\`{r…
Kara Woo
  • 422
  • 3
  • 9
10
votes
2 answers

How to find what causes ESS to run very slow?

When working with an iESS session of R and an R file open side-by-side, I noticed extremely slow performance when typing indetifiers. Typing braces and operators is fine, however, when an identifier is typed, there is very significant input lag…
Kristóf Marussy
  • 606
  • 4
  • 10
10
votes
2 answers

Technical considerations for package maintainers to not use the Emacs package manager?

I am noticing some notable package maintainers are choosing to not use the Emacs package management system (ESS?) or complaining about its limitations (Helm). Quoting from Helm's README.md: WARNING: Due to a bad concept of package.el which is in…
Amelio Vazquez-Reina
  • 5,157
  • 4
  • 32
  • 47
9
votes
2 answers

How to implement the piping operator %>% in ESS mode?

Recently, R witnessed the smart introduction of the piping operator %>% or then operator in code which I use quite frequently nowadays. I wonder if this has already been implemented in the newest version of ESS. If not, it shouldn't be a problem to…
doctorate
  • 1,789
  • 16
  • 39
8
votes
1 answer

Can we get inline results with polymode for Rmd files?

As a new Emacs user, I've recently learned how to use polymode to handle R code in org-mode. I'm happy with it, since I get the same features than those implemented for example in Rstudio for Rmd files (e.g., facilities to execute code chunks and…
Philopolis
  • 1,094
  • 8
  • 14
8
votes
1 answer

export R code results in org-mode?

I want to execute R code blocks in org-mode and export the results to a PDF/html. Here is an example: Some text here... #+begin_src R :results output latex library(xtable) x <- rnorm(100) y <- x + rnorm(100) xtable(summary(lm(y ~ x))) #+end_src I…
Shambho
  • 457
  • 3
  • 13
7
votes
1 answer

Emacs busy while evaluating R in ESS

When using Emacs with ESS, when I evaluate functions that take longer to complete (reading in larger files or executing SQL queries), the whole Emacs becomes busy (freezes, hangs, crashes - whatever you call it), and I can't continue editing, using…
6
votes
1 answer

How to implement comments outline in ESS similar to that of Rstudio?

Shifting from Rstudio to ESS took some time with me because of the steep learning curve of a versatile Emacs editor, but is was a worthwhile experience. What I am still missing in ESS is that outline or overview of the R script file based on…
doctorate
  • 1,789
  • 16
  • 39
6
votes
2 answers

Disable smart underscore for good ESS

I am trying to disable the underscore thing in ESS where it gets converted to a <- . If I add (add-hook 'ess-mode-hook (lambda () (ess-toggle-underscore nil))) To my init file, it works for the first R file I open, but as soon as I open a…
6
votes
0 answers

Return System Notification When Long-running Comint Process Completes?

I often have long-running processes in comint shells (e.g. SQL or fitting statistical models, both usually via an R/ESS shell). While they're running I navigate away and do something in another buffer, and try to remember to check-back periodically.…
6
votes
1 answer

ESS freezes on startup with ess-tracebug mode enabled

I am currently running R 3.3.1 in emacs 25.1.1, ESS 16.10, and polymode 20160805.448 installed via MELPA on Mac OS Sierra. Whenever I try to open an interactive R console using M-x R, it freezes immediately upon startup and I have to force quit…
6
votes
1 answer

What is the difference between the knitR and knitR-ESS for polymode?

I have recently setup polymode for use with Rnw and Rmd files. When it came to knit/weave a document I was given the choice of four defaults; knitR-ESS, Sweave, knitR and Sweave-ESS. I usually use knitR outside of emacs but I wondered what is the…
Hantabaru
  • 95
  • 3
1
2 3
11 12