Sparapani, Rodney | 16 Apr 15:27 2014

Re: font lock

On 4/16/14, 7:52 AM, "Bond, Stephen" <Stephen.Bond <at>> wrote:

>Is this new stuff? My ESS does not have that menu and when I do 'display
>faces' inside an R buffer, no such faces are shown.
>Also my status bar says [R] Rox , no db Eldoc.
>Using: ESS version 5.13
>Thanks a lot.
>Stephen Bond | Senior Analyst | Treasury Analytics | 416-956-3092

Hi Stephen:

Yes and no.  It¹s been around for a while.  But, compared to 5.13 which is
3 years old (and that is a long time in ESS development), it is new.


ESS-help <at> mailing list

Jotham Apaloo | 16 Apr 00:22 2014

Strange behaviour of ESS and ESSAuto-complete with a prompt specification in Rprofile.r

Thank you!! I had this issue and even after much searching and adjustment
of various configuration files I never found this solution. Thanks for


Jotham Apaloo
jothamapaloo <at>

	[[alternative HTML version deleted]]

ESS-help <at> mailing list

Ali Tofigh | 16 Apr 00:59 2014

Indentation of continued statements

When writing R code with ess-style set to C++, continued statements
are indented like this in the outermost level:

1 +
    2 +
    3 +

However, inside braces (for example inside function definitions),
continued statements are indented like this:

    1 +
        2 +
            3 +

Is there a way of getting the same indentation as the outermost level
everywhere? I've experimented with all the style variables, but
nothing seems to work. I don't really see why the two cases should be
indented differently.


ESS-help <at> mailing list

(Continue reading)

Sparapani, Rodney | 15 Apr 18:52 2014

Re: font lock

> Is it possible to use a special face for the builtin functions in R,
> like "read.csv" or "glm"?
> I have the following in my .emacs, but they do not do anything. Only R
> keywords like "for" , "in" , strings and
> comments are treated properly.
> Also, library(mypack) will treat library with the constant face, but
> load("dat.Rdata") does not treat
> load with any face.
> (custom-set-faces

Hi Stephen:

That's because you are not doing it right ;o)  The variables you want
to customize are ess-R-font-lock-keywords and inferior-R-font-lock-keywords.
But, you would probably want to make those changes via the menu.  To
see an example, check out


ESS-help <at> mailing list

Bond, Stephen | 15 Apr 18:04 2014

font lock

Is it possible to use a special face for the builtin functions in R, like "read.csv" or "glm"?
I have the following in my .emacs, but they do not do anything. Only R keywords like "for" , "in" , strings and
comments are treated properly.
Also, library(mypack) will treat library with the constant face, but load("dat.Rdata") does not treat
load with any face.

  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
'(default ((t (:stipple nil :background "BlanchedAlmond" :foreground "SaddleBrown" :inverse-video
nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 98
:width normal :family "outline-courier new"))))
'(font-lock-builtin-face ((t (:foreground "red"))))
'(font-lock-comment-face ((nil (:background "light blue" :foreground "blue" :family "italic"))))
'(font-lock-function-name-face ((t (:background "white" :foreground "blue"))))
'(font-lock-keyword-face ((t (:background "light grey" :foreground "dark green" :weight bold))))
'(font-lock-string-face ((((class color) (min-colors 16) (background light)) (:foreground
"DarkGreen" :weight semi-bold))))
'(font-lock-variable-name-face ((((class color) (min-colors 88) (background light)) (:foreground "brown")))))

Thank you.

Stephen B

	[[alternative HTML version deleted]]

ESS-help <at> mailing list
(Continue reading)

Grant Rettke | 12 Apr 18:12 2014

Thoughts on auto-saving all file buffers before any eval?


The ESS manual communicates the philosophy that file-artifacts are the
ultimate definition
of the system and I agree. My first time using ESS, I found that the
setting 'ess-mode-silently-save'
was critical. Still wanting to have interactive evaluation, even used
primarily from persistent
file buffers, I wanted the file always to be in sync with what I'm doing in
the system itself.
With that goal in mind I added some advice.

; ------- SNIP --------- SNIP ---------
  (defun gcr/save-all-file-buffers ()
    "Saves every buffer associated with a file."
    (dolist (buf (buffer-list))
      (with-current-buffer buf
        (when (and (buffer-file-name) (buffer-modified-p))

(defadvice ess-eval-region-or-line-and-step (before
before-ess-eval-region-or-line-and-step activate)

(defadvice ess-eval-region-or-function-or-paragraph (before
before-ess-eval-region-or-function-or-paragraph activate)

(defadvice ess-eval-region-or-function-or-paragraph-and-step (before
(Continue reading)

Grant Rettke | 12 Apr 03:24 2014

Philosophies for using ESS[S]: which values to customize and how?


In section "Philosophies for using ESS[S]" in the user manual,

, two ways of using
ESS are listed, the wrong way and the right way.

The wrong way lists the correct variables to
customize, the right way does not. My goal is to get a code snippet with
"the right way" to configure it.

If I reverse the values I end up with the "right way" looking like this:

(setq ess-keep-dump-files +1)
(setq ess-delete-dump-files nil)
(setq ess-mode-silently-save +1)

Does that look right to you folks?


Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi
grettke <at> |
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
(Continue reading)

Paul Johnson | 10 Apr 18:10 2014

non-exported functions, can ESS make usage more convenient?

This is another case where I don't understand the computer science-y
words you guys use and so I can't understand the documentation that's
right in front of me. I think...

The question now is how to develop functions using non-exported
functions from one's own package.  My code in the rockchalk package
has quite a few "rockchalk:::" usages.  I put those things in there
because the functions are not exported. It is not possible to write
new functions or to "step through" a function's code without manually
inserting the package name :::.  I had thought those usages were
actually beneficial because the eliminate the R runtime lookup for the

R 3.1 package builder now gives warnings about usages like that.

There are ::: calls to the package's namespace in its code. A package
  almost never needs to use ::: for its own objects:
See the information on DESCRIPTION files in the chapter 'Creating R

Is this the kind of thing that ESS developer mode is designed to help?

While I'm asking, I have this related problem ALL THE TIME. Somebody
else's package has a problematic function in it. So what I do is get
their code and interactively revise the function so it works better.
Then I use assignInNamespace to put my new function in place of their
function during the runtime experience so I can see if this works.
I've done this to try to persuade some packagers that I am smarter
than they are.  If I can get the same result much faster, they usually
(Continue reading)

Stephanie M. Gogarten | 7 Apr 19:13 2014

slow response on Mac OS 10.9


I just upgraded to Mac OS 10.9 (Mavericks) and I'm having trouble with 
ESS.  I have R 3.0.3, and I tried both the ESS-included Emacs binary 
( and the binary without extras 
( and installing ESS from source.

In both cases, I'm getting really slow response when using the "Execute 
this line" button in Emacs.  The simplest R functions take several 
seconds to process.  Typing directly in the R buffer doesn't have this 

Has anyone else seen this behavior, or know of a fix?


(also posted to r-sig-mac, sorry for any duplicate emails)

ESS-help <at> mailing list

Ross Boylan | 4 Apr 22:48 2014

problems with ess-remote in git

I just updated ess from git (2737b5b98784961897503c29c139c735cb0ead24) 
and am having problems getting the ess-remote command to complete.

emacs 23.2.1, Debian 6.0.7.  I start emacs (non-gui) and start a shell 
within it.  I launch R via a script that sets up an MPI session 
(openmpi) and give the emacs command ess-remote.  I hit enter for R when 
prompted for the session type.

The terminal just sits there.  If I try to type in it there is no 
response.  If I hit ctl-g the line options(pager='cat') appears and I 
can type commands into R.  After doing this a couple of times iESS 
appeared in the mode line (it may have happened the first time).

I just tried reproducing the problem, and this time everything just worked.
Ross Boylan

ESS-help <at> mailing list

François Michonneau | 4 Apr 17:43 2014

Best way to wrap lines in polymode

Hello all,

  What is the preferred way of having only the text portions of, let's say
a Rmd file, wrap at 80 characters?

  -- François

	[[alternative HTML version deleted]]

ESS-help <at> mailing list