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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
44 views

Enabling helm interferes with R/ESS

I have helm enabled in an Org file that init.el calls. The code looks like the following: (use-package helm :config (require 'helm-config)) (global-set-key (kbd "M-x") #'helm-M-x) (...
user avatar
  • 153
0 votes
0 answers
25 views

Previous code that appears automatically

I have a very annoying issue running R with emacs+ess on the remote workstation. My local PC runs Fedora 35 (all up to date), the remote workstation run Debian 11 (alla up to date). I used "...
user avatar
  • 123
0 votes
0 answers
13 views

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 ...
user avatar
1 vote
1 answer
49 views

Org-babel and ESS: Problem with exporting ANSI code to pdf

I am having some issues with Org mode Babel exporting output with ANSI characters. When I don't specify a session (example 1), everything is OK. When I specify a specific session, the code is garbled (...
user avatar
0 votes
0 answers
24 views

How to position ESS windows in doom-emacs similar to Rstudio?

I'm trying to pass my R coding workflow to Emacs, but I'm not completely satisfied with the windows' layout. The basic layout to start should be the classic's Rstudio layout. In the ESS manual they ...
user avatar
1 vote
0 answers
27 views

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 ...
user avatar
  • 111
0 votes
0 answers
13 views

Autocompletion of variables in R when using tidyr pipes

I've started to use emacs (spacemacs, specificallYy) recently instead of a number of different applications. One of those I'm using emacs for is R development, instead of Rstudio. I'm using ess. Is ...
user avatar
  • 101
0 votes
0 answers
7 views

What header code does Emacs expect, to update the filename in headers in `ess-r-mode`?

I have a R-Script created with R-Studio with a certain outline structure. Outlines are useful special comments with at least four dashes at the end and show up in a outline list for fast navigation. ...
user avatar
  • 101
0 votes
1 answer
92 views

Getting R to Display Graphs in Emacs Window

There are some old threads asking about getting R to display its graphics in an emacs window (e.g. ESS plot directly to an Emacs buffer?) and the ESS manual says, 11.6.2 Using ESS with windowing ...
user avatar
1 vote
1 answer
30 views

How to update beg end with comment-region

Scenario: I have Emacs open with split window. Top window contains an R script. Bottom windows has the interactive R session. I want to be able to copy a region from the interactive window to the ...
user avatar
1 vote
0 answers
17 views

Setting R's `source()` options used by ESS

I'm trying to figure out what to add to my .emacs settings file to get ESS to include an option and setting when sending highlighted code to R. Specifically, I want to set source(max.deparse.length=...
user avatar
1 vote
1 answer
24 views

ESS : Seeing vignettes for a package without attaching the corresponding package

Suppose I wish to see the vignettes for an R package via ESS. I can do it like this:- # This in the R process library(car) # This in the minibuffer M-x ess-display-vignettes My question is this: Can ...
user avatar
1 vote
1 answer
37 views

ESS: Turn off [TRUNCATED] in ESS R session

I'm running some code in a .Rmd file using M-n v u, but when I do so, my output is truncated. I'd like to turn this feature off, but the only documentation I can find mentioning truncation is for ess-...
user avatar
3 votes
1 answer
83 views

How to implement the native |> pipe in ESS mode

Using the code provided here I can use the magrittr package pipe %>%. I want to switch to the new native R pipe |>, but if I just substitute the old pipe with the new one the code is not ...
user avatar
  • 131
2 votes
1 answer
215 views

How to stop ESS from asking for "R starting project directory"?

Every time I execute all code blocks in an org mode file that contains an R code block (using org-babel-execute-buffer with C-c C-v C-b), ESS pauses to ask for R starting project directory, which ...
user avatar
  • 910
1 vote
1 answer
52 views

Help window in ESS

I am using ESS for using R. When I use help in ESS, I have the screenshot like Picture 1. But, I want to get Picture 2. How do I manage my init.el? The following code is my init related to ESS. (use-...
user avatar
  • 101
1 vote
0 answers
108 views

How to use Emacs+ESS to access GNU R within docker including x11 without openssh-server

I'm using Debian Stable (currently Buster) to do my programming in GNU R. As an IDE I'm using both Nvim-R (a vim/neovim-plugin) as well as Emacs+ESS but not Rstudio (although it's a great IDE for ...
user avatar
  • 175
0 votes
1 answer
34 views

ESS: start R in current directory conflicts with ivy-mode

I use ivy-mode for completion. I don't usually want to see the dot files ("./" and "../") when selecting files/directories, so I've set (setq ivy-extra-directories nil). I also ...
user avatar
  • 20.3k
2 votes
2 answers
164 views

Key binding for pipe in ESS

I am trying to define keymapping about %>% for ess R mode. Code 1 is my init.el based on How to implement the piping operator %>% in ESS mode?. After evaluation of the code, I get the key ...
user avatar
  • 101
1 vote
0 answers
28 views

add personal template directory to poly-R

I'm trying to migrate my R workflow totally to emacs (my experience with emacs is very basic), so I installed ESS and poly-markdown and poly-R among other things. When working in rmarkdown files I ...
user avatar
  • 111
1 vote
1 answer
27 views

Poly-Markdown+R does not find the right version of R for R code chunks

I am working on a Rmarkdown document and I have R 4.0.4 running in a buffer. I try to export the document with M-n e and it finds R 3.6.3 sessionInfo() R version 3.6.3 This meant that I had a lot of ...
user avatar
1 vote
1 answer
31 views

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 ...
user avatar
1 vote
1 answer
53 views

How to turn off R help document popup when using ESS?

When I input a function, the R help document pops up automatically. It's very annoying. How to turn it off?
user avatar
1 vote
1 answer
42 views

Pass a table's colnames to an R block

I have an org file with this content: #+name: my-table | *Type* | *Value* | |---------+---------| | Web | 744 | | Checks | 520 | | Cash | 105 | |---------+---------| | *Total* | ...
user avatar
0 votes
1 answer
209 views

Clear console output on *R* buffers when using ESS

I have this kbd in my init.el (global-set-key (kbd "C-l") 'comint-clear-buffer) When I use Emacs-ess mode fro programming in R, I use this kbd to clear the R output buffer, this is usually ...
user avatar
1 vote
0 answers
110 views

Polymode very slow in Rmd files

I am struggling with emacs constantly hanging as soon as I move the cursor into a code chunk in Rmd files. It spends about two seconds moving the cursor after I hit an arrow key. Can you help me get ...
user avatar
0 votes
1 answer
103 views

How to build and install R package in ESS?

Some time ago I've written function to build R package using "CMD INSTALL" the problem is that I can't do the same with ESS. There is function ess-r-devtools-build but it seems that it don't ...
user avatar
  • 661
1 vote
1 answer
52 views

Only run a function if it is a new session

In my init.el file, I have a hook to setup my workspace when I open a particular type file. Specifically, when I open an R file (i.e., *.R) and ESS-mode starts, a couple of other windows open with ...
user avatar
  • 191
3 votes
0 answers
60 views

Why is file buffer replaced by scratch buffer on startup?

When I open an R file in ESS-mode, I'd like emacs to setup my panes in a certain format. To this end, I've added the following to my init.el. (add-hook 'ess-mode-hook (lambda() (...
user avatar
  • 191
0 votes
0 answers
28 views

Patching together emacs buffers and shells outside of emacs

I'd like to use emacs as a replacement for my current IDE when using R. I like to divide my workspace into three panes: Text editor R console zsh Previously, I had used tmux to achieve this by ...
user avatar
  • 191
1 vote
2 answers
69 views

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 ...
user avatar
  • 191
0 votes
1 answer
471 views

spacemacs: How can I disable flymake and flycheck completely, to speed up performance

I’m using spacemacs. I just installed syntax-highlighting layer and auto-completion layer, and now my emacs got really really slow. So slow that going back to PyCharm (IntelliJ) with R-plugin feels ...
user avatar
  • 3
1 vote
1 answer
52 views

Tell ESS to use a different R program when on a Tramp remote session

I'm trying to configure ESS to use a different R program path when I'm on a remote session. Now, every time I ssh into the hpc cluster I use, I set the variable inferior-ess-R-program to /weird/path/...
user avatar
0 votes
0 answers
23 views

how to get out of a (R) repl’s multi-line (multiple-line) / line-continuation mode

My question: In (an R-repl from ESS layer) in spacemacs, I can’t end a multiple-line after I start it myDf %>% # here i hit RET so then the REPL goes into multi line mode: + myDf %>% myDf %&...
user avatar
  • 25
1 vote
1 answer
153 views

How to add function call highlighting in ESS?

I currently have some syntax highlighting in my ESS code (e.g., for brackets, =, and strings). I would like to add highlighting of function calls, like RStudio's "Highlight R function calls" ...
user avatar
  • 41
1 vote
1 answer
248 views

ESS start process does not include new R version

I am using the windows version of emacs that includes AuTeX and ESS from Vincent Goulet. I was using an older version of this packaging with a couple different versions of R. I recently installed the ...
user avatar
0 votes
0 answers
73 views

No match for ess-rdired

I'm not able to invoke the rdired-buffer when typing M-x ess-rdired, I get a "no match"-message. I'm also not able to find the function ess-rdired in the documentation (via C-h f). Any idea ...
user avatar
  • 1
1 vote
0 answers
110 views

Company printing stuff to console in ESS

I am using company with ESS, and in some contexts, company will print weird documentation messages to the console: (list "" '(("..." . "")) '("recursive" "use.names" "..." "x" "replace" "drop_null" "...
user avatar
3 votes
2 answers
179 views

Using tramp and ESS-mode, how can I get the R interpreter to execute locally?

I use tramp to edit R files on a remote server. When I evaluate R code within ESS-mode, it starts an R interpreter on the remote machine. However, at the moment ssh -X to the server does not work, so ...
user avatar
  • 43
1 vote
1 answer
48 views

general function to concat token at point with function and send to *R*

I'm moving my R setup over to emacs and ess -- and am struggling with the emacs / LISP customisation process. In an answer to another question, I learnt how to create a function that concats a ...
user avatar
  • 147
2 votes
1 answer
75 views

emacs ess apply function to token under point

I've finally committed to moving over to both emacs and ess -- and i'm having a bit of trouble getting (the famously customisable) combination to work as i'd like. Say that i have a file that ...
user avatar
  • 147
0 votes
1 answer
44 views

How to get ess-describe-object-at-point to delete-window when I am done?

I am reading this function and still don't see why it doesn't delete both the buffer and window. Currently it open a new window, and when I hit C-g another buffer (even duplicated to the one I am ...
user avatar
1 vote
0 answers
148 views

ESS R workflow with package management in renv (or Packrat)

I do all my R development in Emacs via org-mode and ESS. All of my R projects are managed out of a single org-mode document (studies.org). Each project has a header and is tangled to its own project ...
user avatar
  • 1,775
3 votes
1 answer
223 views

Preview images, and PDFs inside a SSH terminal session or inside emacsclient session via SSH?

I work remotely to Linux servers, writing R scripts with ESS. Rstudio works well if I have a fast and stable GUI-based remote desktop connection to the server. Rstudio server also works OK if I have ...
user avatar
1 vote
2 answers
195 views

Set ESS working directory from header-args with org-babel sessions

I am experiencing a very strange behavior with org-babel code blocks. When I operate without the :session tag, I am free to use :dir to set my working directory. As you can see, the following code ...
user avatar
  • 1,775
0 votes
0 answers
92 views

Evaluate org-babel header arguments consistently

Consider the following org-babel code block: #+BEGIN_SRC R :session *R* :dir ~/_test getwd() #+END_SRC When I C-c C-c on my source block, I get the following result, as expected: #+RESULTS: : /...
user avatar
  • 1,775
2 votes
1 answer
489 views

Any equivalent of R+ESS for python?

I do a lot of R coding on Emacs – on Windows – using the wonderful ESS package. What I particularly like is that I can: start an R session, and then send lines or regions of the script I'm working on ...
user avatar
  • 183
1 vote
0 answers
58 views

Send a command to Emacs from an inferior process

Is it possible to send a command to Emacs from an inferior process? For my particular use-case, I would like to instruct Emacs to run the command inferior-ess-r-reload-hook (part of the ESS package) ...
user avatar
  • 385
1 vote
1 answer
204 views

ESS: display-buffer-alist reusable-frames does not work as expected

I'm trying to use the display-buffer-alist variable to control how Emacs displays spawned inferior shells (ess-r in particular). I'm using the display-buffer-alist value from ess doc: (setq display-...
user avatar
  • 249
1 vote
0 answers
96 views

How to pass bash commands from a script to terminal?

Let's say I have a bash script. Is there a way I can pass specific lines or blocks in the script to terminal process in EMACS? Just like how we do for R script using command C-c R
user avatar
  • 275