dbosak01 / reporter

An R package to write statistical reports.
Creative Commons Zero v1.0 Universal
16 stars 3 forks source link

Read variable from yaml #324

Closed dbosak01 closed 9 months ago

dbosak01 commented 10 months ago

User is creating a quarto doc and would like to use reporter to display a table. He would like to get a variable from a yaml file and pass a variable into a reporter function. Is there a way to do it?

dbosak01 commented 10 months ago

Seems like you should be able to access the yaml file directly and pull any variables you need from there. It is one approach. Here is an example:

_variable.yml.txt MyDoc2.Rmd.txt