Re: [ESS] how to edit openbugs model file?

2016-12-05 Thread Paul Johnson
Thanks, everybody. I'm taking the suggestion Martin offered, since this thing is required to be named *.txt in the current OpenBUGS. Solution Put this at the end of the *.txt file: # Local Variables: # mode: R # End: That works. This question was raised by an interesting problem. This might

[ESS] working directory lost when R session closes

2017-07-14 Thread Paul Johnson
Do you notice this: cd into a folder, say "~/tmp/project/R" and start emacs with a file in there. The working directory correctly shows "~/tmp/project/R". Then launch an R session. When you quit the R session, and start a new R session, the working directory changed, it becomes "~/tmp/project".

Re: [ESS] Ever consider changing indentation on #?

2017-05-04 Thread Paul Johnson
of the markdown-style commentary? > > Here is an R file that has "Rstudio sections" that begin with #. I just tested with their gui and the magic recipe for howto is written below. It is something like Emacs org mode, I suppose. Code folding. This is an example of a file that

[ESS] starting directory not detected correctly anymore

2017-11-30 Thread Paul Johnson
Greetings. I want to have ESS know the working directory from shell pwd, I don't want it to ask me. I have a setting in my init.el that used to work that way: ;; start R in current working directory, don't let R ask user: (setq ess-ask-for-ess-directory nil) Recently, it has stopped working.

Re: [ESS] starting directory not detected correctly anymore

2017-12-04 Thread Paul Johnson
sets the default >> directory to the package directory. It looks like it treats your tmp >> directory >> as a package. @Lionel? >> >> Vitalie >> >>>> On Thu, Nov 30 2017 18:59, Paul Johnson wrote: >> >>> Greetings. >> >>> I

Re: [ESS] [R] M-x R gives no choice of starting dir

2017-12-13 Thread Paul Johnson
If Emacs is not asking for starting directory, it is very likely your init file has this somewhere: (setq ess-ask-for-ess-directory nil) On Mon, Sep 11, 2017 at 3:23 PM, Enrico Schumann wrote: > On Mon, 11 Sep 2017, Christian writes: > >> Hi, >> >> I experienced a

[ESS] polymode indents everything when editing Rmd file?

2018-02-06 Thread Paul Johnson
I wonder if I've got polymode set up correctly. I have Ubuntu 17.10 Emacs 25.2 Ess 17.11, it works well to edit R files. Today I installed polymode from melpa, When I open an Rmd file, I can visually see a difference. The code chunks are likely shaded areas. Also, some keywords within the R

Re: [ESS] polymode indents everything when editing Rmd file?

2018-02-06 Thread Paul Johnson
t a polymode problem. I just don't like markdown-mode so much. If anybody has tips for working with Rmd files, I'm all ears at this point. Best pj > Best, > Ista > > On Tue, Feb 6, 2018 at 11:24 AM, Paul Johnson <pauljoh...@gmail.com> wrote: >> I wonder if I've got polymod

[ESS] re-mapping C-RET in 18.10, avoiding conflict with CUA mode

2018-10-24 Thread Paul Johnson via ESS-help
I'm running Ubuntu-18.10 and the new packaging for elpa-ess provides ESS 18.10. I still like CUA mode rectangles and so I want to remap C-RET to S-RET. 5 years ago Vitalie S told me how to do that. The stanza in init.el was: ;; Change shortcut "run this line" to use Shift-Return ;; Suggested by

Re: [ESS] re-mapping C-RET in 18.10, avoiding conflict with CUA mode

2018-10-25 Thread Paul Johnson via ESS-help
till discussing the change. For now > just replace "ess-mode" with "ess" and it should be fine. The change to > *-visibility-* is needed. > > In the future release both ess-mode and ess will work. > > > Vitalie > > >> On Wed, Oct 24 2018 14

[ESS] Run roxygen examples: how now?

2019-01-30 Thread Paul Johnson via ESS-help
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

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 thoug

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 >

[ESS] Roxygen Update is "off by one" in function

2019-02-05 Thread Paul Johnson via ESS-help
confidence interval bound ##' @param arrow.width Arrowhead length must be specified in inches. See ?arrows ##' @param width Thickness of shaded column ##' @param col Color for a bar ##' @param opacity 120 is default, that's partial see through. ##' @return NONE ##' @export ##' @author Paul Johnson