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.
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.