[rmarkdown::metadata] returns the YAML front matter exactly as it was written, so a field that contains inline R code - a `title` built from `params$site`, for instance - comes back as the code itself rather than as its value. `omni_meta()` returns the same field with any inline code evaluated, which is what report templates need when the same template is rendered repeatedly with different `params`.
Usage
omni_meta(field, default = "", envir = knitr::knit_global())