@ESS{[BUGS]} NIMBLE has re-vitalized the BUGS language.
All previous instances of BUGS such as OpenBUGS and JAGS
are now deprecated.  Therefore, ESS suppors BUGS syntax
to allow for proper fontification of statements,
distributions, functions, commands and comments in BUGS/NIMBLE model files.
@comment command files and log files.  

@comment Second, @ESS{} creates templates for the
@comment command file from the model file so that a BUGS batch process can be
@comment defined by a single file.  Third, @ESS{} provides a BUGS batch script
@comment that allows @ESS{} to set BUGS batch parameters.  Fourth, key sequences
@comment are defined to create a command file and submit a BUGS batch process.
@comment Lastly, interactive submission of BUGS commands is also supported.

@section ESS[BUGS]--Model files

Model files with the @file{.bug} extension are edited in @ESS{[BUGS]}
mode.  
@comment Three keys are bound for your use in @ESS{[BUGS]}, @kbd{F2},
@comment @kbd{C-c C-c} and @kbd{=}.  @kbd{F2} performs the same action as it does
@comment in @ESS{[SAS]}, @xref{ESS(SAS)--Function keys for batch processing}.
@comment @kbd{C-c C-c} performs the function @code{ess-bugs-next-action} which
@comment you will use a lot.  Pressing it in an empty buffer for a model file
@comment will produce a template for you.  @kbd{=} inserts the set operator,
@comment @code{<-}.

@comment @section ESS[BUGS]--Command files

@comment Files ending in @file{.bmd} are used for BUGS command files.  When you
@comment have finished editing your model file and press @kbd{C-c C-c}, a command
@comment file is created if one does not already exist.  When you are finished
@comment editing your command file, pressing @kbd{C-c C-c} again will submit your
@comment command file as a batch job.

@comment @section ESS[BUGS]--Log files

@comment The @file{.bog} extension is used for BUGS log files.  The command line
@comment generated by @ESS{} creates the @file{.bog} transcript file.  

