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:

182 questions
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…
4
votes
1 answer

How to increase C stack size for R in ESS?

I can not figure out how to change the C stack size for R in ESS. I can change it in terminal as follows: X:~$ ulimit -s 8192 X:~$ R --slave -e 'Cstack_info()["size"]' size 7969177 X:~$ ulimit -s 16384 X:~$ R --slave -e 'Cstack_info()["size"]' …
H.Holmberg
  • 41
  • 2
3
votes
1 answer

ess - starting directory

I use ess to run R and have encountered an annoying change that now when I start an R process with ess it defaults to starting in what is apparently the root of the project not the directory of the file in the buffer I'm in. For example if I'm…
trosendal
  • 133
  • 4
3
votes
2 answers

up-to-date method for disabling smart underscore in ESS?

I've read the answers in Disable smart underscore for good ESS and ESS smart underscore does not work in emacs25 reasonably carefully and don't seem to be getting any of them to work. Maybe that's because the emacs/ESS ecosystem has changed, or…
Ben Bolker
  • 83
  • 6
2
votes
0 answers

Emacs freezes using Sweave and ESS

I am using Emacs + ESS + Sweave to write a document. When I do multiline copy of noweb commands using M-w, switch to R buffer and execute them (C-y, RET), Emacs will sometimes freeze, forcing me to kill Emacs and start over. This also happens with…
learner
  • 203
  • 2
  • 5
2
votes
0 answers

Using R double colon operator messes up the indentation in emacs

Using R double colon operator messes up the indentation in ess/emacs. For example, df <- map( xyz, something ) vs. df <- purrr::map( xyz, something) where the first style is what I want. My settings are as…
1
vote
0 answers

ess-eval-line-visibly-and-step splits window and shows in both

I've noticed that when I execute ess-eval-line-visibly-and-step inside an R-mode buffer and I don't already have an active R session, it will split the screen (good), however it will change both sides of the split into the R session (bad). I would…
Josh
  • 95
  • 6
1
vote
1 answer

ess: transform a text selection into an R vector

Is there any ess function that does the following? Assume you have the line in Emacs like this 1 2 3 4 then once selected (e.g., using the mouse), it is transformed into c(1,2,3,4) It would be a wonderful tool. I copy and paste stuff that I…
PinkCollins
  • 191
  • 9
1
vote
2 answers

Prevent ESS from opening an R console

Say I want to create and edit a new R file using emacs/ESS. I type emacs myfile.R at my shell prompt and an empty file opens. Hurray! I start typing my code: library(da at which point I am interrupted and prompted with, R starting project directory?…
Dan
  • 191
  • 5
1
vote
1 answer

ESS smart underscore does not work in emacs25

Previously when I used the underscore key in my keyboard ESS replaced it for the assigment keys <-. In emacs25 that no longer happens. I have installed the ESS package from MELPA, as well as, it's dependencies. I have the line ;; initialize all…
Usobi
  • 113
  • 3
1
vote
1 answer

Drawing a horizontal line to a specific column number in ESS

I want to be able to execute a command in ESS to quickly add a horizontal line (using dashes) out to column 80. This will be used for header comments. I'd like to be able to re-execute the command to redraw the line if I change the header comment…
jdtonkin
  • 625
  • 6
  • 14
1
vote
0 answers

Using ESS via nix

I'd like to use ESS (Emacs Speaks Statistics) with the nix version of R and the packages I need. Here's what I can do via the shell nix-shell shell.nix -I nixpkgs=/Users/dom/nixpkgs --run R shell.nix ensures I have R and the R packages available…
1
vote
1 answer

ESS C-RET does not add a new line at the end of buffer

According to the doc, since ESS 12.09 ESS: ess-eval-*-and-step functions go to next empty line at eob, instead of staying at the last line. However, when I hit C-RET at the end, it still says on the last line. C-h c C-RET confirms that C-RET is…
Heisenberg
  • 453
  • 4
  • 9
1
vote
0 answers

What is the best way to modify an existing function from a package?

There is a function in ESS called ess-sas-goto-log (https://github.com/emacs-ess/ESS/blob/master/lisp/ess-sas-a.el#L705) that will open a log file and search forward using re-search-forward. I would like to make a version that searches backwards.…
1
vote
1 answer

ESS - stop move point to end when the buffer is updated

Whenever the R process redirect new output to the process buffer, Emacs move the point to the end of the buffer. This is annoy when user want to check previous commands or output that are outside of the window. How to stop Emacs doing this? Could…
yi.tang.uni
  • 1,017
  • 8
  • 20
1
2