Atul Shrivastava | 8 Feb 19:43 2016

Terminating ESS/R session question

Hello - I recently started using ESS in emacs (using Prof. Goulet’s version in Windows. Thank You!).
After customization, the tool works great but there’s one simple piece of functionality that I’m
unable to get working.

I prefer to have emacs prompt me to (y/n/c) to save my R workspace when I quit ESS/R buffer (typically thru C-c
C-q), but right now it quits without saving the workspace, while saving .Rhistory in the working
directory. I can force save by setting inferior-R-args in init.el file, but I want the default behavior to
be where the system prompts me.

Any thoughts are greatly appreciated.


Atul Shrivastava

ESS-help <at> mailing list
Vitalie Spinu | 8 Feb 14:59 2016

Re: How to assign function key

>> On Sat, Feb 06 2016 15:22, Patrick Connolly wrote:

> (define-key ess-mode-map [f5] 'ess-r-args-show)
> (define-key ess-mode-map [f6] 'ess-r-args-insert)
> (define-key inferior-ess-mode-map [f5] 'ess-r-args-show)
> (define-key inferior-ess-mode-map [f6] 'ess-r-args-insert)

> Now, the point of F5 is almost redundant because it happens by default
> -- *except* that only the first line is shown. :-( To see any more, I
> can press the <tab> key but that won't show the defaults.  To get
> them, I end up having to use the args() function -- now with quotes
> required for the function name.

> For example, if I want to see the arguments and their defaults for
> fisher.test, I see the first line of them in the mini-buffer
> immediately after I type the open bracket.  Previously, I had to press
> the F5 key but it showed all of them.  Now, if I try to do that, I get
> a Message;
>  call-interactively: Wrong type argument: characterp, ("x" . "")

I have fixed this part in the development version. For now you can put this in
your file:

     (defun ess-r-args-get (&optional function trim)
       (if (null function)
           (setq function (ess-r-args-current-function)))
       (when (and function
                  (or ess-current-process-name
(Continue reading)

Vitalie Spinu | 4 Feb 18:16 2016

Re: ESS support for generating Rd from Roxygen

Yes. Thanks to Lionel Henry! It's already there on developer2 branch, but we are
still figuring the new interface for ess-developer as that one got revamped as


>> On Thu, Feb 04 2016 12:10, Mathieu Basille wrote:

> 'devtools' supported? That's a really great news!

> Thanks for the continuing (great) dev of ESS!

> Mathieu.

> Le 04/02/2016 02:32, M.van_Iterson <at> a écrit :
>> Dear Vitalie, 
>> Thank you for your quick reply! 
>> I'm looking forward to the new release of ESS!
>> Regards, 
>> Maarten
>> ________________________________________
>> From: Vitalie Spinu [spinuvit <at>]
>> Sent: Wednesday, February 3, 2016 11:11 PM
(Continue reading)

M.van_Iterson | 3 Feb 21:17 2016

ESS support for generating Rd from Roxygen

Dear All,

For package development, is it possible to generate package documentation, in Rd-format for the
man-directory, from roxygen function documentation using a certain key combination, either on a
function-level,  R-file or on all files in the R-directory.

I thought something similar to M-n r (to generate the tex-file from Rnw-file) should exist for roxygen but I
cannot find it?

Now I use, within R the function roxygenise("package-name") from the roxygen2 package for generation of
the Rd-files and NAMESPACE.

Or is there an easy way to bind this roxygenise-step to a key combination to run from emacs?


	[[alternative HTML version deleted]]

ESS-help <at> mailing list

Patrick Connolly | 3 Feb 10:05 2016

How to assign function key

I have most of my function keys as shortcuts to frequent events.

These all work with ess-15.09-2:

(global-set-key [f1] 'ess-eval-line)
(global-set-key [f2] 'ess-eval-region-and-go)
(global-set-key [f3] 'ess-eval-line-and-step)
(define-key ess-mode-map [f4] 'ess-dump-object-into-edit-buffer)
(define-key inferior-ess-mode-map [f4] 'ess-dump-object-into-edit-buffer)

I don't understand the syntax, a fact which would be clear to someone
who does when they see me try this:

(global-set-key [f7] 'comint-kill-output)
(define-key ess-mode-map [f7] 'ess-comint-kill-output)

They would understand why I get a message that F7 is null or
undefined.  I'm too lazy to type C-c C-o every time and would
appreciate help with the correct syntax.

Thank you.


   ___    Patrick Connolly   
 {~._.~}                   Great minds discuss ideas    
 _( Y )_  	         Average minds discuss events 
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)  	                      ..... Eleanor Roosevelt
(Continue reading)

Christian Hoffmann | 1 Feb 21:54 2016



My frames in Aquamacs have taken on such unreadible colors in the 
buffers of process R and the status line in the minibuffer of frames 
containing .R files etc.  I messed things up unintentionally and cannot 
get back to my old time proven background and foreground colors. The 
'options' > 'appearance' > (color wheel) will not be of much help.

TIA   C.


Christian W. Hoffmann
CH - 8915 Hausen am Albis, Schweiz
Rigiblickstrasse 15 b, Tel.+41-44-7640853
mailto: christian <at>

ESS-help <at> mailing list

Boylan, Ross | 25 Jan 23:01 2016

object '.essbp.' not found

I placed a breakpoint in my code, but when execution gets I get the error message shown in the subject line.

I'm working with the latest version of ESS master from git and R 2.15.1 under Linux.  I do not have the
distributions ESS installed, but am loading directly from the git repo.

This is kind of odd, since I think it used to work.  I only updated to the latest code after encountering the error.

Any idea what's going on?

Random theories:
R too old.
ESS needs an installation procedure.

Ross Boylan
ESS-help <at> mailing list

Titus von der Malsburg | 24 Jan 18:57 2016

Plots and XWidgets

Hi all,

as you perhaps already know, the XWidget feature has been merged into
Emacs 25.  I didn’t think this would ever happen, how exciting.

Could XWidget serve as the basis for live R plots embedded in Emacs?

Here are links to two earlier discussions about embedding plots in R:


ESS-help <at> mailing list
Bill Denney | 18 Jan 17:43 2016

R-Markdown Locks up in Polymode/ESS


I've just started taking advantage of the benefits of polymode and ESS
combined for r-markdown documents having previously manually coded them.
I'm using them to make a vignette for the PKNCA package, and when I scroll
through the .Rmd file, emacs locks up when leaving the first code block
after I make an edit in the block.  It fully locks up, and I can't switch to
the messages buffer in emacs to see the reason for the hang.

Here are the steps to reproduce the error as I'm using it.

Windows 10 (up to date)

Emacs version: GNU Emacs 24.5.1 (i686-pc-mingw32) of 2015-04-11

ESS version: ess-version: 15.09-2 [Released git: 01328e83039f]

Polymode installed via MELPA yesterday: version 20151216.533 as described by

Markdown-mode installed via MELPA yesterday: version 20160115.2318 as
described by MELPA

1.      Load the file in emacs

2.      Scroll down to the first code block (see below my signature for the

3.      Change "addlastrow" to "setpredose" (I have no R buffers open)

(Continue reading)

Ramon Diaz-Uriarte | 8 Jan 14:53 2016

"?" not working with Julia?

Dear All,

I just did a fresh install of ESS and the Debian binary of Julia
(v. 0.4.2-3) and accessing the help does not seem to work. For instance, if
I do

julia> ?fft

I get

ERROR: UndefVarError: help not defined.

Likewise, C-c C-d C-d fails with the same error (though C-c C-d C-a works
fine).  I think this might be related to the removal of help as a function
in Julia around 0.4 (though I think apropos should also disappear soon too
if I understand correctly:

I guess this is a bug in ESS, but I was reluctant to submit it since I am
not really sure.




Ramon Diaz-Uriarte
Department of Biochemistry, Lab B-25
Facultad de Medicina
(Continue reading)

Chris Wallace | 4 Jan 13:34 2016

remote R via ssh - customizing the command used to start R

Dear ESS-help,

I usually run R on a remote server ("serverA") via tramp:

M-x R

and then I reply to the prompt asking for a starting directory by

/ssh:user <at> serverA:~/

and all has been well.  Now, I need to run R on a different server 
("serverB") and there I need to run a command before `R` so that the 
right R is found.  Specifically, I need to run `module load R/3.2.3 && 
R`.  I can do so using `M-x shell` and then ssh to serverB, load the 
module, and start R.  But I miss some of the functionality with `M-x R`.

I figure everything in ESS is configurable, so I tried to customize 
inferior-R-program-name to "module load R/3.2.3 && R" but that failed with

env: module load R/3.2.3 && R: No such file or directory

And, besides, I need to load this module only on serverB, not server A 
(which doesn't have the module command at all).

So, where should I look to customize the command used to start R on a 
specific remote server?

Thanks, Chris


(Continue reading)