If your title depends on an R variable created later in the document, you may add the field in a later YAML section, e.g., the following:
You can also generate titles or any YAML fields dynamically from parameters in parameterized reports (see Section ), e.g.,
We used the title as the example in this section, but the idea can be applied to any metadata fields in the YAML section.