A.J. Rossini | 4 Sep 08:55 2015

project management in Emacs / ESS / R

Dear all -

After spending too much time with archaic languages which are archaic
(SAS) and living in the future (Common Lisp) I'm back to R for work
related programming.

I had to use RStudio at first for various collaboration (and deadline)
reasons, and while I found it adequate, it was clunky and inefficient
for me.   However, it had a reasonable project management accelerator,
and I enjoyed that.

What, if any, is the current best-practices for doing something like
the RStudio projects in ESS/Emacs?   I know I can go back and hack the
CEDET tools again, but there ought to be something less general,
restricted mainly on managing sets of files and displays.

(I also can just do what I did before, but why waste microseconds
typing for the UI when I can save them for R and ESS hacking?)


blindglobe <at> gmail.com
Muttenz, Switzerland.
"Commit early,commit often, and commit in a repository from which we
can easily roll-back your mistakes" (AJR, 4Jan05).

Drink Coffee:  Do stupid things faster with more energy!

(Continue reading)

Erin Jonaitis | 31 Aug 22:37 2015

Interactive SAS mode hangs

Hi all,

I'm working on a Linux machine (not sure what distribution) using emacs 23.1-28.el6.x86_64 and ESS
version 15.03.

I'm used to working in SAS interactively in ESS (i.e. by sending M-x SAS and then executing code chunks one at
a time). I'd been working on a much older version of ESS, but my system is in the process of being upgraded and
I'm testing ESS on the new machine. Right now R seems to work fine, but when I try to execute (much) SAS code
inside ESS, it crashes emacs badly and can only be killed via the command line. Sometimes the crash
involves very strange cycling of the cursor image through various possible cursor images (an arrow, two
balls, arrows specific to window resizing).

Questions: Any idea what could be the problem? What other information would you need to be able to help
diagnose it?

Details of the crashing:
- Trying to define a new data step crashes.
- libname statements do not crash.
- Trying to read data from a set inside a successfully defined library causes a crash.
- Using proc contents on such a dataset also crashes.
- Macro %put statements do not crash.

Sample code:

%put I read the first line; *this works -- prints to the log;
libname temp '/my/path/here'; *this works too -- gives me a "successfully defined" message;

data temp2; *causes a hard crash with weird cursor behavior;
    set temp.temp1;
(Continue reading)

Andreas Leha | 24 Aug 12:57 2015

completion of colnames with spaces

Hi all,

This is question / feature request about completion of colnames with
spaces.  Is it possible to have backquotes inserted automatically when
completing problematic names?  If not, could that be made possible?

Neither auto-complete nor company completion seem to do this right now.

As an example take the following data.frame with point at the '|':

--8<---------------cut here---------------start------------->8---
tmp <- data.frame(`name with space`=1, b=2, check.names = FALSE)
--8<---------------cut here---------------end--------------->8---

Upon completion (great that it works and offers even problematic names!)
I get

--8<---------------cut here---------------start------------->8---
tmp$name with space
--8<---------------cut here---------------end--------------->8---

but it would be much more useful to actually get

--8<---------------cut here---------------start------------->8-
tmp$`name with space`
--8<---------------cut here---------------end--------------->8-

(Continue reading)

Vitalie Spinu | 17 Aug 18:13 2015

Re: x11 configuration for running ess on remote server

Have you tried what I suggested earlier? Do you see the problem when ssh-ing
from local emacs shell, or R-ing in remote shell opened through tramp?


>> On Mon, Aug 17 2015 09:27, Zhihao Ding wrote:

> Thanks very much for your replies. I still haven't got it working. I am
> googling around to see if it's down to some configurations of X11 or ess.

> Best,
> Zhihao

> On 14 August 2015 at 17:17, Ista Zahn <istazahn <at> gmail.com> wrote:

>> And... now it magically works again, I can no longer reproduce the
>> problem. Good for me, not so good for Zhihao.
>> Zhihao, can you see if it works with a minimal config, e.g., start
>> emacs with 'emacs -q', evaluate[1]
>> (require 'package)
>> (package-initialize)
>> (require 'ess-site)
>> open the remote file and try to plot? If it works that would suggest
>> something in your emacs configuration is the cause, and you can
>> comment out half at a time to see where the problem is.
(Continue reading)

Riccardo Romoli | 17 Aug 00:52 2015

emacs24 crash when start R

Hi, I get an annoing problem running R from emacs. When I try to run R 
(M-x R) emacs crash. I run emacs 24.4.1, ESS 14.09, R 3.2.1. under 
Debian jessie. I tried to run R from shell and it works.

Do you have any suggestion?

All the best, R

ESS-help <at> r-project.org mailing list

Murat Tasan | 13 Aug 17:56 2015

indentation when chaining operators across lines

Does anyone know how I might be able to easily control indentation
when chaining R 'operators' across lines?

Here's an example with the default indentation applied:

1 +
    2 +
        3 +

The preferred indentation would be something closer to:

1 +
    2 +
    3 +
    4 +

This seems like a trivial example, but here's one using dplyr's
chaining paradigm using the default indentation:

flights %>%
    group_by(year, month, day) %>%
        select(arr_delay, dep_delay) %>%
                arr = mean(arr_delay, na.rm = TRUE),
                dep = mean(dep_delay, na.rm = TRUE)
            ) %>%
                filter(arr > 30 | dep > 30)

And here's the same as found in dplyr's docs:
(Continue reading)

Zhihao Ding | 12 Aug 13:00 2015

x11 configuration for running ess on remote server

Hi there,

I had some problems with firing up X11 on remote server. I use tramp to
open a R file on a remote server and start a R session there.  When I do
plot I don't get X11 piped through. How do I configure this?


	[[alternative HTML version deleted]]

ESS-help <at> r-project.org mailing list

Brian | 10 Aug 16:33 2015

ess-roxy-update-entry is wreaking havoc in devel

Dear developers,
ess-roxy-update-entry is wreaking havoc
C-c C-o C-o within
test <- function(crap, crap.parameter)
    paste(crap, crap.parameter, sep=" + ")
## random text

Gives me:
##'  <at> param crap
##'  <at> param crap.parameter t
##'  <at> return
##'  <at> examples
##'  <at> export est <- function(crap, crap.parameter) { paste(crap,
crap.parameter, sep=" + ") } ## random text

It looks like a bit of text mauling plus auto-fill-mode.  I got bitten
(again) by using melpa.  What am I, a lowly emacs+ess user, doing using
a development release? 


GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars)
of 2015-06-23
(Continue reading)

Paul Johnson | 31 Jul 18:03 2015

Tracebug. ess-own-frame problem

I'm here again to confess my ignorance. I'm at your mercy, as ever.
(Emacs 24.4, ESS 15.03)

I used a machine that did not have my emacs init file yesterday and I
noticed Tracebug worked. Until now, I just thought Tracebug was an
annoying poison pill, but now that I've seen what it does, I am
interested to know how I can fix my init file.

When my init file is in use, Tracebug, causes this very unhappy
behavior.  The window focus will not stay in the *R* session file when
I use browser() or debug().

In the session *R* frame, I type "n" <Ret> or just <Ret>, and the
window focus shifts over to an R code file with a brown stripe
rectangle at the point of execution.  When I want to run the next line
in the debugger, I have to manually go back to *R* and <Ret>.  Then
Emacs throws focus back at the place where the brown stripe is. I have
to re-focus the *R* frame after every line being executed. If I go
into the code file where the brown stripe is, I can send lines into
the *R* process in the usual ways. However, the brown stripe does not
advance, and sometimes the cursor jumps about, the pointer does not
step down through the code file in sequence, it sometimes seems stuck
in a loop, stepping back several lines and running things over. This
is not going through a for loop or such, its just stuck.

Since I don't think I gain much from Tracebug, I don't mind disabling
it, but then Emacs and ESS doesn't work well any more.  Some work
becomes really slow. Highlight a region and send to R is super slow,
takes 1 minute to send code rather than 1 second.  Eval-Function takes
30 seconds or more to respond. I watch the CPU, it does not appear to
(Continue reading)

Liu, Ran | 28 Jul 20:41 2015

help: how to set up R mode in emacs via ESS


I am new to ESS and learnt that ESS is the way to go about editing R file with highlighting, coloring in Emacs.
Below is the line I put in my .emacs file:

(add-to-list 'auto-mode-alist '("\\.R$" . ess-mode))

But it is not giving pretty colors nor the convenient indenting via tab key.

Any suggestion?

Many thanks!


This message, and any attachments, is for the intended r...{{dropped:5}}

ESS-help <at> r-project.org mailing list

Riccardo Romoli | 16 Jul 15:55 2015

feature request: ESS and Python

Hi all,
I would know if there are some project to include Python support in ESS. 
I increasingly use Python for data analisys and I haven't found anithing 
powerfull as ESS to write code, debug code and interact with the 
interpreter (iESS mode for R). I use a little code to try to use some 
similar facilitises of ESS but it is very rudimentary (each time I have 
to manually associate the code to the *Python* buffer...).

I use isend mode with this code:

;; Python send code
(add-to-list 'load-path "/home/r/.emacs.d/lisp/isend-mode/")
(require 'isend)
(setq isend-skip-empty-lines nil)
(setq isend-strip-empty-lines nil)
(setq isend-delete-indentation t)
(setq isend-end-with-empty-line t)

(defadvice isend-send (after advice-run-code-sent activate compile)
   "Execute whatever sent to the (Python) buffer"
   (let ((old-buf (buffer-name)))
       (switch-to-buffer isend--command-buffer)
       (goto-char (point-max))
       (switch-to-buffer old-buf))))

I am sure there are more people (e.g. in bioinformatics) who have to
work quite a bit on Pithon scripts and are happy users of ESS. These 
(Continue reading)