[ESS] .Rmd files and polymode
Patrick Connolly
p_connolly at slingshot.co.nz
Sat Oct 4 22:46:22 CEST 2014
I've found ESS does everything I need to manage R code and haven't
updated for 3 years or so. Now that I want to use knitr, I'd like to
get .Rmd buffers recognised. So I installed the latest ESS. Looking
around, it seems to mean the use of polymode, so I found this page:
https://github.com/vitoshka/polymode
Following instructions I got as far as the Activation of Polymodes
section. Was I in error assuming that goes in my ~/.emacs file?
There seems to be a polymode-configuration.el which is up to par which
made me optimistic.
However, if I try to start emacs I get this message:
Cannot open load file, color-...
That seems to be looking for colour themes somewhere which those
instructions have assumed was already functioning. That might be
because my version of Emacs predates such functionality.
$ emacs --version
GNU Emacs 23.3.1
Maybe my bottleneck is the theme settings or could it be that I erred
in putting th Activation section in ~/.emacs?
I've also assumed the Basic Usage section (in
https://github.com/vitoshka/polymode) is not for mere users such as
me, so I didn't try to make head or tail of it.
It doesn't bother me particularly if it doesn't all work. I have
these function keys set for years:
(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)
f2 already works in a .Rmd buffer. I'd be happy if I could get f3 to
work also.
Suggestions welcome.
--
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
___ Patrick Connolly
{~._.~} Great minds discuss ideas
_( Y )_ Average minds discuss events
(:_~*~_:) Small minds discuss people
(_)-(_) ..... Eleanor Roosevelt
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.
More information about the ESS-help
mailing list