[ESS] Problem with indenting and sending lines to R after updating to 13.05

Frank Harrell harrelfe at gmail.com
Sun Jun 2 16:42:03 CEST 2013


Kevin Wright <kw.stat <at> gmail.com> writes:

> 
> For the spacing, note this comment from the release-notes:
> 3) The default ess-style has been changed from years of 'DEFAULT'
>    to 'RRR',  see the recent e-mails on ESS-help, for the main
>    rason that a close cousin of RRR has been in use in Vincent
>    Goulet's Windows and MacOS distros for ESS.
> 
> I use this in my .emacs
> (setq ess-default-style 'DEFAULT) ; site-start uses C++, which indents 4
> 
> Can't help with S-Plus.
> 
> Kevin
> 
> On Sun, Jun 2, 2013 at 7:56 AM, Frank Harrell <harrelfe <at> gmail.com> 
wrote:
> 
> > After I updated to 13.05 on linux I am having two problems.  First, when 
I
> > start an R console with the R icon things seem to work but when I click 
on
> > a
> > line of R code and click on the icon to send the line to the console, I 
get
> > "Searching for program: no such file or directory, Splus".
> >
> > Secondly, I am getting a larger number of spaces with auto-indenting 
than
> > before.
> >
> > How do I revert to the old behavior on both issues?
> >
> > Thanks
> > Frank Harrell
> >
> > ______________________________________________
> > ESS-help <at> r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/ess-help
> >
> 

Thanks very much Kevin.  The setq did the trick.  I am not clear on why such 
a strange new default was chosen, but I'm sure others have discussed that.

Please note that I'm not using S-Plus.  ESS thinks I am, and hence the 
failure when I attempt to send lines to the R console even though the R 
console launched fine from within ESS.

If it matters, I have defined the following in my .emacs

; See http://blogisticreflections.wordpress.com/2009/10/01/r-object-
tooltips-in-ess
(setq ess-R-object-tooltip-alist
      '((numeric    . "summary")
        (factor     . "table")
        (integer    . "summary")
        (lm         . "summary")
        (other      . "str")))

; Allow for object-type-specific tooltips for R objects
(defun ess-R-object-tooltip ()
...
;; my default key map
(define-key ess-mode-map "\C-c\C-g" 'ess-R-object-tooltip)

(provide 'ess-R-object-tooltip)

Frank



More information about the ESS-help mailing list