Parsing a record populates its values field with elements and options. An
option is an R6 object that inherit from nmrec_option.
Details
Types of options
positional (
nmrec_option_pos): the option is rendered as thevaluefield.For example, the file name from a
$DATArecord with a value of "foo.csv" would be rendered as "foo.csv".flag (
nmrec_option_flag): ifvalueis notNULL, the option is rendered as thename_rawfield.For example, the interaction flag for an
$ESTIMATIONrecord with aname_rawvalue of "interact" and a value ofTRUEwould be rendered as "interact".value (
nmrec_option_value): render name-value pair fromname_rawfield andvaluefield, separating the values by thesepfield value.For example, the maxevals option for a
$ESTIMATIONrecord with aname_rawfield of "MAX", avaluefield of "999", andsepfield of " = " would be rendered as "MAX = 999".record name (
nmrec_option_record_name): this option derives fromnmrec_option_flagand tailors formatting for record names.For example, a
name_rawvalue of "est" for an$ESTIMATIONrecord would be rendered as "$est".nested (
nmrec_option_nested): this option derives fromnmrec_option_pos, replacing the simplervaluefield with avaluesfield that is a list of items to render. Like thevaluesfield of a record objects, this consists of elements and options. It is useful forTHETA,OMEGA, andSIGMAvalues, which can have more complex formatting and have attached options (such as "FIXED").
See also
get_record_option() for getting a specified option from a record
object.
