Re: [ESS] Run roxygen examples: how now?

2019-02-04 Thread Paul Johnson via ESS-help
On Mon, Feb 4, 2019 at 9:22 AM Alex Branham  wrote:

>
> > In my init file I have S-RET as the replacement for C-RET, but I've
> tested
> > this both ways and get same behavior.  After removing the init file,
> when I
> > do C-RET, then the one line I'm on will run, but the focus jumps over the
> > rest of the example code lines and stops at the first line of code that
> is
> > not commented.  This happens whether an R file is edited in a package in
> > developer mode or if the file is in a separate directory.
>
> Can you try with the latest ESS version (i.e. get it from MELPA rather
> than use 18.10)?[1]
>
> If that still doesn't work, you might have to do a bit of
> troubleshooting to find the issue since it's working for me. Here's a
> list of things to look at:
>
> - make sure ess-roxy-mode is on
> - make sure ess-roxy-remove-roxy-re is in ess-presend-filter-functions
> - make sure ess-roxy-re looks like it matches roxy comments
>
> > If nobody else sees this, then I guess it has to be something peculiar
> > about Ubuntu's Emacs 25.2.2 ??
>
> I guess that's possible, but it seems pretty unlikely.
>
> Footnotes:
> [1]  https://melpa.org/#/getting-started
>
> Interesting. Problem does not appear in ess-18.10.3snapshot

-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.

[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Run roxygen examples: how now?

2019-02-04 Thread Alex Branham via ESS-help


> In my init file I have S-RET as the replacement for C-RET, but I've tested
> this both ways and get same behavior.  After removing the init file, when I
> do C-RET, then the one line I'm on will run, but the focus jumps over the
> rest of the example code lines and stops at the first line of code that is
> not commented.  This happens whether an R file is edited in a package in
> developer mode or if the file is in a separate directory.

Can you try with the latest ESS version (i.e. get it from MELPA rather
than use 18.10)?[1]

If that still doesn't work, you might have to do a bit of
troubleshooting to find the issue since it's working for me. Here's a
list of things to look at:

- make sure ess-roxy-mode is on
- make sure ess-roxy-remove-roxy-re is in ess-presend-filter-functions
- make sure ess-roxy-re looks like it matches roxy comments

> If nobody else sees this, then I guess it has to be something peculiar
> about Ubuntu's Emacs 25.2.2 ??

I guess that's possible, but it seems pretty unlikely.

Footnotes:
[1]  https://melpa.org/#/getting-started

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] Run roxygen examples: how now?

2019-02-04 Thread Paul Johnson via ESS-help
On Wed, Jan 30, 2019 at 4:37 PM Alex Branham  wrote:

>
> On Wed 30 Jan 2019 at 12:34, Paul Johnson via ESS-help <
> ess-help@r-project.org> wrote:
>
> > In functions with roxygen examples, until very recently I could run the
> > examples even though they had the roxygen comment "##'" at the beginning.
> > Emacs/ESS would, literally, let me do "next" over and over again to run
> > example code.
> >
> > Today I realize that does not happen anymore, Emacs/ESS is treating those
> > things like comments and the focus skips to the function definition.
> >
> > Can I make it do the other way now?
> >
> > I'm in Ubuntu, Emacs 25.2.2, ESS 18.10.2,
>
> Can you describe how you're trying to run them? C-RET seems to work fine
> for me.
>
> Thanks,
> Alex
>


Hi, Alex

In my init file I have S-RET as the replacement for C-RET, but I've tested
this both ways and get same behavior.  After removing the init file, when I
do C-RET, then the one line I'm on will run, but the focus jumps over the
rest of the example code lines and stops at the first line of code that is
not commented.  This happens whether an R file is edited in a package in
developer mode or if the file is in a separate directory.

If nobody else sees this, then I guess it has to be something peculiar
about Ubuntu's Emacs 25.2.2 ??

pj

-- 
Paul E. Johnson   http://pj.freefaculty.org
Director, Center for Research Methods and Data Analysis http://crmda.ku.edu

To write to me directly, please address me at pauljohn at ku.edu.

[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help