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
0
votes
0answers
8 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 ...
0
votes
0answers
31 views

run bibtex in a Knitr workflow in Emacs?

I have used version 18.10.2 of ess (see question https://stackoverflow.com/questions/60445059/where-is-ess-version-19-04) and followed the directions at how to setup Knitr workflow in Emacs? to get to ...
1
vote
0answers
27 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) ...
1
vote
1answer
38 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-...
0
votes
0answers
11 views

Autocompletion in R files set `truncate-lines` to `t` (spacemacs)

I use the ess layer in spacemacs to work with R files. After an autocompletion, the variable truncate-lines is set to nil. Furthermore, during the time the complexion box is on the screen, the lines ...
1
vote
0answers
49 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
0
votes
0answers
31 views

Stop Emacs From Moving Text / Point to Bottom of Screen

I don't fully understand what is happening but I would like it to stop - I am using org-mode and ESS, and when I am in an R src block, things like hitting tab to auto-indent a line of code cause point ...
1
vote
0answers
38 views

Company-mode slow in ESS

When using (i)ESS, I would like to function/variable/argument/filename completion on demand using the minibuffer, without triggering the company pseudotooltip front end. I have tried the following: (...
0
votes
0answers
24 views

No filename completion with Eglot and R

Using ESS with emacs I have automatic filename completion. So, when I am withing "./" and hit TAB, it shows me a list of files and directories within that directory. However, after installing eglot ...
7
votes
1answer
228 views

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 ...
0
votes
1answer
89 views

Emacs 26.3 cannot call R

After updated to macOS Catalina (10.15) I've been trying to use R in Emacs 26.3. However, Emacs is not fetching R by using M-x R (Emacs says [No match]). I already checked the paths for both R and ...
3
votes
1answer
73 views

Run R code on selected object

I am missing (or not aware) of a feature in ESS to run some R code on selected text. When editing a script, like df1 <- data.frame(a=1:100,b=rnorm(100)) I often want to see head(df1) in my ...
2
votes
1answer
321 views

Flycheck r-lintr doesn't find anything

I want to use lintr to check R-files in emacs. According to https://github.com/jimhester/lintr#emacs lintr is fully integrated into flycheck when using ESS. See the installalation documentation ...
1
vote
2answers
89 views

Problem Committing with Magit

I'm a relatively new convert to emacs and a very new convert to Mac. After installing Emacs using the ESS installer (Version 18.10.2). When I attempt to state a file for commit I receive the ...
1
vote
1answer
38 views

remove keybinding from ess-extra-map

Related: https://stackoverflow.com/questions/7598433/how-to-remove-a-key-from-a-minor-mode-keymap-in-emacs How can I find out in which keymap a key is bound? There is a default keybinding in ESS ...
5
votes
3answers
83 views

Sending `C-c C-c` to the process window without swithcing to it

In ESS mode, I sometimes send some code to the process buffer and want to cancel it using C-c C-c. Can I do this without actually switching to the process window from the script window?
0
votes
1answer
129 views

Evaluate single line of python code from Emacs org-babel

Consider a block of python code in an org-mode document: #+begin_src python num1 = input("Enter a number: ") num2 = input("Enter another number: ") result = float(num1) + float(num2) print(result) #...
2
votes
0answers
33 views

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) ...
0
votes
2answers
120 views

underscore (“_”) randomly stops working for ESS

I am using iESS console and editor (ESS) for R programming, and often times (and randomly) the _ stops resulting in <-. To temporarily hack it, I found that I could use ess-toggle-underscore or ...
3
votes
0answers
142 views

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 ...
1
vote
0answers
52 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 ...
0
votes
0answers
62 views

Compile multiple Rnw files

If we divide our Rnw file into multiple files, is it possible to create the whole document using knitr and LaTeX in Emacs by pressing M-n e on a child file? I guess the process above should be ...
1
vote
0answers
52 views

Emacs plugin to browse Julia documentation, at point or textual

It is quite annoying that I have to leave emacs to browse Julia documentation. Are there any nice plugins to get the documentation at point or that provides a nice direct textual interface to the ...
4
votes
1answer
192 views

How to display *help* buffers below one specific window?

I am (really) new in Emacs and ESS, and I am currently trying to customize my environment. The default settings of ESS[R] are convenient for me, since ESS[R] organizes the windows as follows: --------...
0
votes
0answers
45 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 ...
0
votes
0answers
46 views

ESS knitr workflow with natbib

This solution explains ESS knitr workflow and it works as explained. However, it does not explain how to knit an Rnw file containing natbib references. Similar question have been asked here and the ...
4
votes
1answer
84 views

Send content of region or current line to a tmp file, then execute shell script with filename as argument

I am transitioning to Emacs with evil-mode after years of Vim. For work reasons I have to use a GUI statistics program (Stata) frequently. This program does not integrate well with external editors. ...
2
votes
1answer
63 views

Polymode changes from ESS-mode to Markdown-mode whenever I press enter

When I am editing .Rmd file within a polymode chunk, the mode switches from ESS to Markdown mode whenever I press enter. However, it switches back to ess-mode whenver I save the file. I will try ...
0
votes
0answers
43 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 = ...
0
votes
1answer
449 views

ESS installation does not initialize flymake

I install ESS following these directions, adding these to ~/.emacs: (require 'package) (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/")) (add-to-...
4
votes
2answers
497 views

Unable to install ESS package

I want to install ESS. I initialised the package manager with (require 'package) (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/")) (package-...
1
vote
0answers
39 views

Setting up Knittr workflow in Emacs [duplicate]

I was a happy ESS and R user to obtain tex and pdf files from Rnw file with sweave and knitr. I have followed the answer given here, everything worked fine but after several updates or maybe new ...
1
vote
1answer
78 views

emacs opens ESS/R buffer in random window

I'm using emacs 26.1 with ESS. Whenever I open a R session with M-x R it opens in a random window. However, I would like it to open in the currently selected window. It seems to be a similar issue as ...
1
vote
1answer
209 views

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 ...
1
vote
0answers
195 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" ...
2
votes
1answer
500 views

ESS poly-R issue

I am trying to setup ESS with polymode and poly-markdown I have the following in my myinit.org file which becomes compiled into init.el ;; https://polymode.github.io/installation/ (use-package ...
1
vote
0answers
60 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 ...
2
votes
0answers
31 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 ...
3
votes
0answers
196 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 ...
3
votes
1answer
49 views

How to copy output from ess to the kill ring?

Q: how can I automatically copy output from ess to the kill ring? Background I use ess to conduct statistical analysis. On occasion, I need to copy its raw output into another buffer (usually ...
1
vote
1answer
211 views

How to jump to R source code with ESS?

Q: how can I get to the source code of R packages using ESS? When I'm working with elisp, I can access the source code for any package easily with find-library or by following the links in find-...
1
vote
1answer
198 views

Tramp and X11 forwarding when changing user (su)

I can connect to a remote server with Tramp C-x C-f /ssh:group@remotehost: and get a plot output window (with ess R). But if I change user C-x C-f /ssh:group@remote|su:user@remote: there's no X11 ...
0
votes
1answer
364 views

autoload-do-load: Wrong type argument: consp, nil

I've encountered a problem after upgrading Emacs Speaks Statistics (ESS) from MELPA today to ess-20180926.54. When I try to start an R session under Emacs with M-x R I'm informed... autoload-do-load:...
1
vote
1answer
342 views

Properly install ESS using use-package

I installed ESS using the following chuck of code: (use-package ess :init (require 'ess-site) :mode (("\\.[rR]\\'" . R-mode) ("\\.Rnw\\'" . Rnw-mode)) ) Everything works fine, however ...
3
votes
1answer
460 views

Symbol's value as variable is void: polymode-mode-map

I define a function ess-rmarkdown to compile RMarkdown documents with polymode. (use-package polymode :ensure t :config (use-package poly-R) (use-package poly-markdown) ;;; MARKDOWN (add-...
0
votes
1answer
598 views

ESS install fails on Ubuntu 18.04

I had previously installed and used Emacs 25.2.2 and ESS 17.11 on Ubuntu 18.04 (Bionic Beaver). While attempting to update to the latest version of ESS, the ESS install script appears to have failed (...
0
votes
1answer
522 views

ESS not installable (Ubuntu 18.04)

The day before yesterday, I have experienced my Ubuntu package ess (Version: 17.11-3bionic0) no more configuring properly during apt-get update. I then tried apt-get install -d ess and: dpkg -i /var/...
1
vote
0answers
122 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 ...
1
vote
1answer
61 views

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 ...
0
votes
1answer
1k views

ESS R error: searching for program

I have installed emacs on windows 10 working ok so far. Installed R and ESS. Set system and user path to Rterm.exe as read in some forums. Restarted and opened a R file in emacs. Syntax coloring is ...