Hello,
what are people using (if anything) to find declarations of R functions
within Emacs buffers? e.g. when point is on the name of a function, you
hit a keybinding to look up the definiton of that function.
I just had some success with using dumb-jump.el
https://github.com/jacktasia/dumb-jum
The development version is integrated with xref based on function srcrefs.
It should work with sourced scripts and local packages installed with srcrefs.
We'll try to make it work with non-local packages as well.
Lionel
> On 22 juin 2018, at 11:15, Stephen Eglen via ESS-help
> wrote:
>
> Hello
Oh and it also works well with packages loaded with devtools::load_all().
Use C-c C-w i to install a package with srcrefs and C-c C-w l to load it
with load_all(). Then M-x xref-find-definitions should work when cursor
is on a function name.
Lionel
> On 22 juin 2018, at 11:15, Stephen Eglen via
In addition to xref and etags I use M-o for imenu-anywhere. It works within all
buffers of the same mode and buffers within same project (if you have projectile
installed). The benefit is that you don't need any fancy lockup functionality or
TAGS. It will work straight away. The drawback is that
Hi,
ESS (version 16.10-1 but also earlier) gives the following indentation
for switch statements in r:
f <- function(method = c("foo", "bar"))
{
switch(match.arg(method),
"foo" = { # (*)
cat("Will use 'method' = \"foo\".\n")
},
"bar" = {
cat("Will use 'metho
Hi Alex,
thanks for your quick reply. You are right, I used "(setq
ess-default-style 'C++)", so it's a problem of the C++ style.
Thanks for pointing this out.
I can confirm that the problem does not exist in the default style
(although all cases are indented then, which is a bit of a waste of
spa
On Fri 22 Jun 2018 at 09:50, Marius Hofert via ESS-help
wrote:
> Hi,
>
> ESS (version 16.10-1 but also earlier) gives the following indentation
> for switch statements in r:
>
> f <- function(method = c("foo", "bar"))
> {
> switch(match.arg(method),
>"foo" = { # (*)
> c