set_keyword
Change one keyword in an existing BPP control file, then lint the file again. Preserves layout and comments; refuses multi-line values.
Instructions
Change one keyword in a control file, then lint the file again.
Use this for every edit to an existing control file; never edit one by hand. Look up the keyword's syntax with lookup_docs first, and ask the user before changing a scientific choice.
keyword: a control-file keyword, checked against the manual's list.value: everything after the=, on one line, e.g. "200000" for nsample or "invgamma 3 0.002" for thetaprior.
The keyword's line is replaced where it stands (layout and comments are kept); a keyword the file does not have yet is added at the end. A value that spans several lines in the file (such as species&tree) is refused: remake the file with make_control_file instead.
Returns the lint_control_file result for the edited file, plus
server.changed (keyword, old, new; old is null if it was unset).
Read server.status as usual, and run smoke_test again once it is "valid".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctl | Yes | ||
| value | Yes | ||
| keyword | Yes |