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
3
votes
1answer
154 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
96 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
92 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
190 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
98 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
180 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
109 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
369 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
379 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
130 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
69 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
79 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
68 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 ...
4
votes
1answer
2k 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
708 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
3k 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
557 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
337 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
181 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
99 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
90 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
374 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
46 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
105 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
65 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
397 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
328 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
474 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
136 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
65 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
82 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
93 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 ...
2
votes
2answers
1k views

Reference a variable in a 2nd org-babel code block

How can I define vars in one org-babel code block and use them in a second? This closely follows the tutorial section block-to-block variable passing linked in the first answer. # file test.org * ...
3
votes
1answer
2k views

graphing R in org-babel

How can I get a graph back in my org-babel results for R code? #+BEGIN_SRC R :results output latex boxplot(islands) #+END_SRC Islands is a baked in dataset for R. Do you do it with #+resname: ...
2
votes
1answer
177 views

Why does inserting a new R chunk inside `ess-noweb-mode` give me a leading @ symbol?

I am writing a statistical report using .Rnw buffer and enjoying the very nice ess-noweb-mode, which I see very promising indeed, but what struck me is the strange behavior when I hit the keybinding ...
4
votes
0answers
97 views

using global-linum-mode with ess with a latex/R knit file

When using global-linum-mode with a latex file that has blocks of R code (*.rnw file) moving in and out of the R code blocks cause the line numbers to disappear until the cursor is moved again. Is ...
1
vote
1answer
200 views

Org babel R : can't find org-R-apply

following the tutorial http://orgmode.org/worg/org-tutorials/org-R/org-R.html, I get stuck because I can't find the function org-R-apply. I have R installed on my computer and the package ess has ...
1
vote
0answers
183 views

ESS ignores R_LIBS_USER environment variable

I have the following in my .bashrc export R_LIBS_USER="/home/wdkrnls/R/lib/3.2" When I start R from the shell I see (even in Emacs M-x shell): .libPaths() [1] "/home/wdkrnls/R/lib/3.2" "/usr/lib/R/...
2
votes
0answers
329 views

Emacs/ESS/Org hangs/spins on yank

I have the following Emacs org buffer that I'm editing: #+BEGIN_SRC R regimes <- read.spreadsheet(wlda, 3) %>% within({ TurbineID <- paste(Site, Turbine) Date.of.Change....
4
votes
1answer
98 views

ESS: Disable spaces around `=` in function arguments

With ESS + auto-complete, I get AC suggestions for function arguments that allow me to save time typing them out. What irks me is that it completes the function arguments with spaces around them. For ...
5
votes
1answer
499 views

What is the difference between the knitR and knitR-ESS for polymode?

I have recently setup polymode for use with Rnw and Rmd files. When it came to knit/weave a document I was given the choice of four defaults; knitR-ESS, Sweave, knitR and Sweave-ESS. I usually use ...
1
vote
1answer
164 views

ESS - how to disable sublimity mode for R console only?

Is there a way to keep sublimity mode for R source buffers, while disabling it for the R console?
18
votes
2answers
3k views

how to setup Knitr workflow in Emacs?

RStudio provides a one-button way for produce PDF file from LaTeX+R source with Knitr. It looks great for doing reproducible research. And I am trying to configure my Emacs for: at left buffer LaTeX+...
1
vote
1answer
202 views

Emacs-ESS not closing curly braces within .R files

in my .emacs file I have: ;; enable skeleton-pair insert globally (setq skeleton-pair t) ;;(setq skeleton-pair-on-word t) (global-set-key (kbd "(") 'skeleton-pair-insert-maybe) (global-set-key (kbd "...
2
votes
1answer
92 views

How to stop ESS overriding AUCTeX's TeX-newline in LaTeX parts of .Rnw?

I'm new to Emacs, and am trying to learn it for knitting LaTeX and R (using AUCTeX and ESS). In my ~/.emacs I have: (setq-default TeX-newline-function 'reindent-then-newline-and-indent) which means ...
2
votes
1answer
385 views

New frame does not respect default font

I use Emacs mostly to write R using ESS. I like a large font to reduce eye strain so the last line of my .emacs file is: (set-default-font "Inconsolata-20") If I open a file of R code, this appears ...
2
votes
1answer
387 views

ESS startup is very slow

I recently installed an Ubuntu VM, and I'm working on getting all set up. I've run into a small issue, in that my configuration now takes nearly 30 seconds to start up, where it used to be nearly ...