Questions tagged [r]

R is a free software environment for statistical computing and graphics. R can be run from within Emacs using the ESS (Emacs Speaks Statistics) package, which also provides a major mode for editing `.R` files.

25 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
135 views

Save org-babel output with org-attach

I am using org-babel to write R code in Emacs org-mode. Here's an example: #+BEGIN_SRC R :session *R* :results output graphics :width 5 :height 5 data(AirPassengers) AP <- AirPassengers plot(AP) ...
Adam's user avatar
  • 1,897
3 votes
0 answers
746 views

"error in process sentinel" whenever using %>% in an ESS R buffer

Whenever I include a pipe (%>%) in a ESS R buffer, I start getting the following error repeatedly, with lags that make editing almost impossible: error in process sentinel: Not enough arguments ...
jerome's user avatar
  • 213
3 votes
0 answers
576 views

set breakpoint while in debugger?

Is it possible to set a breakpoint on an arbitrary line while already established in browser()? As a use-case: if I debug(myfunc) and while in Browse[2]> ... I realize that I need to jump forward ...
r2evans's user avatar
  • 275
2 votes
0 answers
586 views

Missing RMarkdown templates with poly-R

I use the ess, polymode, and poly-R packages together to work with RMarkdown files. I have also installed the R packages rmarkdown and tufte in my R library. While these R packages provide ".Rmd" ...
jerome's user avatar
  • 213
2 votes
0 answers
176 views

R in ESS outputs UTF-8, which emacs renders raw

I find the question but no answer at Emacs ESS R - Message Content Encoding and Display Issue. In buffer *R*, the R process uses UTF-8 encoding for its output. However emacs does not decode that ...
Quigi's user avatar
  • 21
2 votes
0 answers
38 views

gnu screen emacs ess: M-X R freeze

I just pick up emacs after a while with Vim. This is run on CentOS server. I ssh to the server, and start with gnu screen, and emacs ess, when I start to run R, emacs just freeze. Here is what I ...
Huw's user avatar
  • 21
2 votes
0 answers
122 views

How to specify number of digits to print from a table using babel?

New to org/babel, so forgive me if this doesn't make sense. I have some code (in R) that produces a table. I also specify (in R) the number of digits that I want with options(digits = 2). When I run ...
Alex's user avatar
  • 1,038
1 vote
0 answers
94 views

Can Emacs (ESS) evaluate R code chunks within .rmd files and embed the outputs within the same file like R Studio?

Recently tried to start using (Doom) Emacs for writing R code via ESS mode. I was wondering if it's possible to embed the outputs of evaluated code chunks of R Markdown files like in R Studio Example: ...
arstdhneio's user avatar
1 vote
0 answers
87 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) (...
cdd's user avatar
  • 207
1 vote
0 answers
42 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=...
mikemtnbikes's user avatar
1 vote
0 answers
287 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 ...
n0542344's user avatar
  • 185
1 vote
0 answers
223 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 ...
Adam's user avatar
  • 1,897
1 vote
0 answers
168 views

How to specify a pdf viewer for ess mode

I have set the variable ess-pdf-viewer-pref to "evince" But when I export any Rnw file using M-n e, instead of displaying the pdf in evince it is displayed inside Emacs. How can I stop Emacs ...
Pooya's user avatar
  • 113
1 vote
0 answers
191 views

R (ESS) freezes emacs when asking for project directory

Using Windows. Fresh install of emacs 2.6. The installation of R CLI and R studio worked ok. No issues. I open R files on emacs and ESS mode is properly set on modeline but when I try to execute/eval ...
Forge's user avatar
  • 285
1 vote
0 answers
50 views

ESS folding for R6 classes

What is the proper way to install, configure and activate folding of R script files? I followed emacswiki.org/emacs/FoldingMode but it doesn't seems to work. I installed folding.el to .emacs/lisp/. ...
jangorecki's user avatar
1 vote
0 answers
218 views

Get company completion without evaluation in ess

Is it possible to do completion without evaluating the buffer in ess-mode/R-mode which uses company-R-objects and company-R-args as backends ? Backends like company-jedi can do completion without ...
Saddle Point's user avatar
0 votes
2 answers
97 views

Installed polymode from Melpa, but everything comes up in Fundamental mode

I've been happily using polymode to edit Rmarkdown documents for many years. I had installed it and configured it manually, and it was fine until the sysadmins upgraded emacs from 24 to 27. The file I ...
Stuart's user avatar
  • 101
0 votes
0 answers
112 views

Importing org-mode table into R using `read.table()`

I see a related question has already been asked, but it misses my particular use case. If I have an org-mode table with some data, and I want to import it into an R session, using read.table. However, ...
nonreligious's user avatar
0 votes
1 answer
277 views

Proper formatting of R help pages in eldoc-doc-buffer using eglot

I am using eglot with R and ESS. If I have the following R script, with eglot enabled (saved as test.R: lm And I place my cursor on lm then a temporary eldoc-buffer pops showing the first few rows of ...
cdd's user avatar
  • 207
0 votes
0 answers
287 views

org-babel code block wrong type argument

I'm stumped as to why I can no longer export an org-babel file with R code chunks and can not work out where the error is cropping up. A simple example that doesn't include the graph... #+STARTUP: ...
slackline's user avatar
  • 335
0 votes
0 answers
33 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 %&...
ppp's user avatar
  • 25
0 votes
0 answers
98 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 ...
harisf's user avatar
  • 101
0 votes
0 answers
194 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: : /...
Adam's user avatar
  • 1,897
0 votes
0 answers
114 views

Projectile renaming buffer name causing issues with ESS (ctrl enter) functionality

I have recently installed projectile package into my Emacs. It's great package, however, now my C-RET binding to ESS (R) is not working any more. Part of my current init.el related to ESS looks like ...
Tomas's user avatar
  • 1
0 votes
0 answers
74 views

How to "manipulate" using R in Emacs

In Rstudio one can use library manipulate to interactively change the plot over some parameters(mu). When you use this in emacs ESS it gives error: function(mu){ plot(mu) } manipulate(myfunc(mu),mu = ...
Pandian Le's user avatar