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

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

2016-12-03 Thread Sparapani, Rodney
Hi Paul: Use BUGS mode which is part of ESS… (require ‘ess-bugs-d) Then name your file model.bug Rodney __ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

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

2016-12-03 Thread Martin Maechler
Also, M-x R-mode but that would need to be done again every time... If you don't want to rename to model.R Add a line ## -*- R -*- at the top (or close enough to the very top; this tells emacs to use R-mode ; there are several (more flexible, more to write) versions of such so-called "file