Liu, Ran | 28 Jul 20:41 2015

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

Hi,

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!

Ran

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

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Riccardo Romoli | 16 Jul 15:55 2015
Picon

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"
   (interactive)
   (let ((old-buf (buffer-name)))
     (progn
       (switch-to-buffer isend--command-buffer)
       (goto-char (point-max))
       (comint-send-input)
       (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)

Gavin Simpson | 15 Jul 21:12 2015
Picon

ESS unable to find R on Linux when emacs started by opening a .R file

Dear list,

I've been re-setting up my laptop after upgrading my Fedora installation to
Fedora 22. I run a locally built R (in ~/R/build/3.2-patched) with a sym
link to the R executable located in ~/bin. I am using the github version of
ESS (setup today).

I can start R in a bash shell in the usual way (typing R), and from within
Emacs shell after M-x shell. I can also do M-x R in a clean Emacs session
(no files loaded into buffers). What is not working for me is starting R
within Emacs via M-x R when I have a .R file open in the Emacs buffer.
Instead I see "Searching for program: no such file or directory, R" after I
accept the suggestion for the starting directory.

Anyone know what is going on here and how to solve this issue?

TIA

Gavin

My .emacs contains:

(custom-set-variables
 ;; custom-set-variables 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.
 '(column-number-mode t)
 '(display-battery-mode t)
 '(inhibit-startup-screen t)
(Continue reading)

Heinz Tuechler | 30 Jun 10:16 2015
Picon
Picon

ESS 15.03 and emacs emacs-24.3 on Windows 7

Dear All,

this is more a comment, but recommendations are welcome.
I installed emacs-24.3 on Windows 7, essentially by copying from 
emacs-24.3-bin-i386.zip into a subdirectory.
Then I tried to do the same with ess-15.03-1.zip. It resulted in the 
message "Symbol's value as variable is void: noweb-minor-mode-map".
I could not find a noweb-minor-mode-map in ess-15.03-1.zip.
After some trials I copied noweb-mode.el from version ess-12.04 into 
ess-15.03\lisp\ .
Then I added
(add-to-list 'load-path "d:/emacs/ess-15.03/lisp/")
(load "noweb-mode")
(load "ess-site")
and now it seems to work.

When I searched for "installation of ess on windows" I found mainly the 
recommendation to use Vincent Goulet's installation, which is very 
probably the best way to do it.
Still, as I update emacs/ess every three to six years, I was curious, if 
I could not do it in a way, I personally understand easier, i.e. by 
simple copying of some files into some directories and continuing my 
.emacs as is.

best regards,

Heinz

______________________________________________
ESS-help <at> r-project.org mailing list
(Continue reading)

Christian Hoffmann | 29 Jun 14:05 2015
Picon

--no-readline ?

In my *ESS* buffer I get

(R): version (3.2.1)
....
(inf-ess 2.2): start args = --no-readline  , 
inf-ess-start-args=--no-readline

ESS is 12.09

I am missing the benefits of readline, e.g. opening the history file and 
editing it for use.

How can the --no-readline be inactivated?

Thanks  c.

--

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

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Rich Shepard | 26 Jun 15:34 2015

ess-tracebug() for R-3.2.0

   Has anyone an idea when ess-tracebug() might be available for the latest R
version?

TIA,

Rich

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

James W. MacDonald | 19 Jun 16:13 2015

(no subject)

Hi,

I use the following in my .emacs, in order that the up and down arrows in
an inferior R buffer will retrieve either the preceding command, or regexp
on partially typed commands:

(define-key comint-mode-map [up]
'comint-previous-matching-input-from-input)

(define-key comint-mode-map [down]
 'comint-next-matching-input-from-input)

In previous iterations of Emacs/ESS, this would return the previous
command, with point at the end of the line. With current versions (24.5.1
and 15.03, respectively), point is now wherever point was prior to hitting
the up arrow.

In other words, if I just hit the up arrow, I get the last command, and
point is at the start of the line. However, if I want to re-run a command
(say hist(<some args here>), and I type 'his' and hit the up arrow, point
is now between the s and t in hist.

Is this an ESS issue, or is it controlled by Emacs? Regardless, is this
something I can change to use the old behavior? Any pointers appreciated.

Best,

Jim

--

-- 
(Continue reading)

Andreas Leha | 10 Jun 15:49 2015
Picon

emacs 'hang'

Hi all,

This might be the wrong list to ask but let me try anyway.

I experience a strange annoyance when exporting an Org mode buffer with
(lots of) R code: emacs quite often waits for results of a source block
execution until I hit C-G (and thus abort the export).  The strange
thing is, that it seems to happen only if I do not actually watch the R
session.  If I, for instance, switch to the browser while the export is
running and effectively cover the whole emacs, this might happen.  So, I
suspect, that not actually writing the generated output is causing the
trouble.

Hence, my question is:  how I can force the output to be flushed and
actually written to the R buffer even if emacs is not focused and buried
under other windows.  Is that possible?

I might be totally off here.  So, any other suggestions on how to solve
this are welcome as well.

Thanks,
Andreas

______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Kevin Coombes | 5 Jun 16:42 2015
Picon

setMethod indentation

Hi,

At some point, the default behavior for indenting anonymous functions 
seems to have changed, and I'd like to know what variable I have to set 
in order to change it back to the old default. I notice the behavior in 
various *apply functions or when is use setMethod with S4 classes. To 
explain what I mean, here is the *old* (and in my opinion still desired) 
behavior:

setMethod("summary", c("Prior"), function(object, ...) {
   cat("Prior: ", object <at> cn,"\n")
   print(object <at> vt)
})

And here is the new behavior:

setMethod("summary", c("Prior"), function(object, ...) {
             cat("Prior: ", object <at> cn,"\n")
             print(object <at> vt)
           })

And yes, I know that putting the opening brace on  a separate line can 
get this behavior:

setMethod("summary", c("Prior"), function(object, ...)
   {
     cat("Prior: ", object <at> cn,"\n")
     print(object <at> vt)
   })

(Continue reading)

Gábor Csárdi | 30 May 02:32 2015
Picon

Interact with ESS from R

Dear All,

I am trying to make crayon (http://www.r-pkg.org/pkg/crayon) work with
Emacs more smoothly. crayon can add ANSI color to strings printed to
the terminal.

As I understand from http://www.emacswiki.org/emacs/AnsiColor recent
versions of Emacs support this out of the box, as long as
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
(add-to-list 'comint-output-filter-functions 'ansi-color-process-output)
was done.

I can check the version of Emacs from the INSIDE_EMACS environment
variable, so I can easily tell if it is recent enough to have
ansi-color.el. So far so good.

Is there a way to check if 'ansi-color-for-comint-mode-on was run and
if 'comint-output-filter-functions contains
'ansi-color-process-output?

In general, can I call Emacs lisp functions from the embedded R process?

I am sorry if this is documented somewhere, I tried to find it in the
docs, without luck.

Thanks, Best,
Gabor

______________________________________________
ESS-help <at> r-project.org mailing list
(Continue reading)

Boylan, Ross | 22 May 20:07 2015
Picon

compilation--ensure-parse error

I just updated my ESS code to master and emacs now gives me
Error in post-command-hook: (void-function compilation--ensure-parse)
at the drop of a hat in functions seemingly unrelated to ESS, e.g., when trying to get a directory listing
(ctl-X D) it gives the error, then show the usual directory prompt, then shows the error again after I enter
a directory and hit enter.  It never shows me the directory listing.

According to the answer for 
http://stackoverflow.com/questions/16122603/font-lock-fontify-keywords-region-symbols-function-definition-is-void-compila
compilation--ensure-parse was introduced in emacs 24.1; I'm running under emacs 23.4.1 (Debian
oldstable--was Debian stable until a few weeks ago).

The function is mentioned in lisp/ess-inf.el

Ross
______________________________________________
ESS-help <at> r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Gmane