kamapu / yamlme

R-Package for writing R-markdown documents from plain R code.
https://kamapu.github.io/yamlme/
GNU General Public License v3.0
4 stars 1 forks source link

Set objects `rmd_doc` as lists rather than vectors... #5

Closed kamapu closed 3 years ago

kamapu commented 3 years ago

To reduce complexity in definition of templates I attemted to write a function that returns a function but it was challenging since the parameters are not fixed ones in write_rmd().

I came to the idea of rather producing a list of arguments instead of the final vector. By this way it may be possible to write a function update_document(), whereby these arguments can be reset without necessity of writing a function for a template.

This issue could by solved in a different branch, implementing also a pull request.

kamapu commented 3 years ago

closed with https://github.com/kamapu/yamlme/commit/b22f82e61bd0624a80909eeb1afa3f9f994af6c6