Re: [ESS] Run roxygen examples: how now?
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?
> 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?
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
[ESS] Run roxygen examples: how now?
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, I may have broken a feature while trying to learn how to use python or Rmd documents. My ~/.emacs/elpa directory has accumulated a lot of junk: auto-complete-20170125.245 company-20190116.1133 dash-20180910.1856 deferred-20170901.1330 ein-20190117.359 elpy-20181228.1721 epl-20180205.2049 ess-smart-underscore-20190110.1750 find-file-in-project-20181217.246 flycheck-20190108.351 gnupg highlight-indentation-20181204.839 htmlize-20180923.1829 ivy-20190116.1140 js2-mode-20180724.801 julia-mode-20190111.2044 markdown-mode-20181229.1430 material-theme-20171123.1840 math-symbol-lists-20190102.1831 pkg-info-20150517.1143 poly-markdown-20181010.2137 polymode-20190102.1910 poly-noweb-20190102.1938 poly-R-20190111.1908 popup-20160709.1429 py-autopep8-20160925.1052 pyvenv-20181228.1722 r-autoyas-20140101.1510 request-20181129.1138 s-20180406.808 simple-httpd-20190110.1505 skewer-mode-20180706.1807 websocket-20180423.16 yasnippet-20181013.2122 yasnippet-20181015.1212 yasnippet-snippets-20181211.2219 -- 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