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
1answer
215 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
379 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
372 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
504 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
621 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
536 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
132 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
63 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 ...
2
votes
1answer
120 views

ESS failed to run: ess-s-define-runners is void

After upgrading packages in emacs, I have the following error message when trying to run R (M-x R): Symbol's function definition is void: ess-s-define-runners. I can't find where the error is. Here's ...
1
vote
0answers
98 views

Emacs ESS R - Message Content Encoding and Display Issue

I use Emacs ESS for doing some work in R. But somehow the help messages or content which is output of R process, is not printed correctly, most likely because of some encoding issue. (Screenshot ...
1
vote
2answers
130 views

Break (C-c C-c) in ESS-remote R shell

I am running my R scripts on a remote shell using M-x shell ssh -X -C name@server.edu srun -p nodeX --pty R (slurm command to start R) M-x ess-remote and select 'R' everythink works fine, until I ...
6
votes
2answers
1k views

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 ...
1
vote
0answers
37 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/. ...
1
vote
0answers
146 views

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....
3
votes
1answer
179 views

“Dissasociate” auto-mode for specific files (in ESS)

I'd like to keep ess as automatic major mode for R files and everything else, except for Julia, for which I want to use julia-mode alone. However, I cannot find out how to "unbind" the file ...
0
votes
1answer
99 views

Printing tibbles in iESS with many columns extremely slow

When I print large tibbles from R it takes a very long time and the iESS buffer runs extremely slowly thereafter (huge lag moving the cursor throughout the buffer or typing). The code below takes 5 ...
0
votes
1answer
107 views

Why can't I bind tab to multiple spaces? [duplicate]

I'm trying to bind tab to either a tab or multiple spaces in Latex/ESS-noweb mode but I can't get it to work. I tried (local-set-key (kbd "<tab>") 'self-insert-command) which didn't work, and ...
1
vote
0answers
214 views

How to get customizations added to `ess-mode-hook` to run in Aquamacs ESS

In Aquamacs 3.3, ESS 16.04, I can't get customizations added to ess-mode-hook to run. Here's a simple example. (defun my-ess-hook () (setq ess-default-style 'DEFAULT) (setq ess-indent-level 2)) (...
1
vote
1answer
104 views

Matching key-bindings between modes

I'm new to emacs, and I'm trying to set it up as my editor for both python and R. Elpy and Ess are both great, and I'm relying on them a lot. However, I'm used to the Ess key-bindings, and would like ...
2
votes
1answer
183 views

ess-mode library name auto-complete

I've been looking around for a solution to get company-mode to auto-complete R library names in ess-mode. The R libraries are stored in folders with the same name, wouldn't it be just the case of ...
0
votes
0answers
123 views

Tramp to HPC server node

I am new to Emacs and one thing I really like about it is the "tramp". I use R with ESS and usually "tramp" to my work computer from home. We also have an HPC server and I am wondering whether it is ...
1
vote
1answer
404 views

Pass variable from src block to org-edit-src-code

I have a table in org-mode that I want to pass into an R source block and then plot from it. When I write everything in org-mode and execute it, I get the results that I expect. However, when I enter ...
1
vote
0answers
391 views

How to set up company mode for ESS Julia

I have ESS installed and I do get company mode drop down menus, but there's nothing Julia specific. For example, I get completion options for functions or variables that I have defined elsewhere in ...
3
votes
1answer
172 views

How to get documentation link in ESS R?

In RStudio, the documentation pane display not just the help file but also links to other help files (see link to aov below). How to get the same in ESS R?
1
vote
1answer
74 views

Is there a way to evaluate from top of buffer to point?

While doing statistical work in ESS, I often want to evaluate everything from the top of buffer to point. This is to make sure that my analysis is reproducible (i.e. script can be run from top to ...
1
vote
0answers
89 views

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 ...
4
votes
0answers
69 views

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

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 <...
4
votes
1answer
823 views

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 -...
3
votes
2answers
4k views

Install ESS with use-package

I would like to install the emacs speaks statistics package from melpa. I found the following snipped (use-package ess :init (require 'ess-site)) on this side https://emacs.stackexchange.com/a/...
1
vote
1answer
603 views

ESS language modes with use-package

I've recenly started to convert my init.el to using use-package, and have so far not found any problems with that -- except that I can't get ESS to work for all languages. I have installed the ...
1
vote
1answer
382 views

ess R startup warning locale

I am using Emacs 25.1.1 with spacemacs. Everytime I run iESS, I get the warning about locale as, During startup - Warning messages: 1: Setting LC_CTYPE failed, using "C" 2: Setting LC_COLLATE failed,...
1
vote
0answers
185 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 ...
3
votes
1answer
106 views

ESS indentation inside functions

Indentation for R inside functions seems to be broken for pipes and '+'s: f <- function(something){ mutate(something, l="aaaa") %>% select(l) %>% str_replace("a", "A")...
4
votes
1answer
92 views

ESS: getting help on package

Is it possible to get ESS to display results of help(package=xxx) in a new buffer, like it does for ?xxx?
5
votes
1answer
389 views

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

ESS dendrograms: appearance of last branch

In R it is possible to customise the appearance of a dendrogram and set a custom start character for the last branches. According to the documentation: In some environments, using ' will provide ...
10
votes
1answer
1k views

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

How Do you export only R code from Rnw file

I am working with knitr, polymode, ess and I would like to export just the R code from my .Rnw into a .R file. A basic file might look something like this: \documentclass[a4paper]{article} My Rnw ...
1
vote
0answers
70 views

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 ...
1
vote
0answers
32 views

ESS hooks breaking buffers not associated with files

This is a weird one, for me: I use both ESS (for R programming) and gist.el for (surprise!) interacting with github gists. Except, now I have a problem: every time I try to view a gist locally, ESS's ...
2
votes
1answer
443 views

Tramp hangs on 'Sending password' whenever ESS is active

Tramp has been hanging on 'Sending password' for me whenever I try to use it. This includes the simplest test case of C-x C-f /sudo::/etc/hosts. After some trial-and-error with my .emacs, it looks ...
3
votes
0answers
354 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 ...
5
votes
1answer
488 views

Why is ESS causing my emacs to start so slowly?

For some reason (which I can't understand, I did not change anything) emacs has become very slow - as in 2 min - at startup. I traced it down to the require commands of ESS. This is what I have in the ...
1
vote
0answers
158 views

Control-Enter doesn't work in ESS?

I checked my ess/lisp/ess-mode.el file and it has the line of code I'm expecting for this to work (below). Anyone know why this would happen? (define-key map [(control return)] 'ess-eval-region-or-...
3
votes
1answer
72 views

imenu in ess-mode: recognize assignment with “=”

Is there a way to configure the imenu integration in ESS-mode so that it recognizes assignment by the equal sign "=", not only by arrow "<-"? I'm switching between R and python so I've switched to ...
1
vote
1answer
86 views

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 ...
1
vote
1answer
97 views

How to fix latin character (e.g. ç, é) incorrectly displayed in emacs ess-buffer?

When I read a file into R, and the file contain characters like "ç" or "é" (latin characters) in a string, the ess-buffer shows meaninless (to me) numbers. For example, the string "ações" is ...
0
votes
1answer
34 views

Making ESS recognize #'

I just upgraded to modified Emacs http://vgoulet.act.ulaval.ca/en/emacs/mac/ When I used to work in R files, #' was recognized by ess-mode such that hitting [Enter] at the end of a line that began ...