You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes there's a specific protocol that you are doing that follows the same vein, where it would be nice to just have a pre-populated skeleton. I personally went from copy-pasting the skeleton, to following the internal flow of wflow_open but with my skeleton file; I just wrote a proof-of-concept wflow_open() that simply adds a template="default" keyword argument that a user can change to specify the location of a properly-formatted template directory. To simplify that, I also wrote a wflow_template() function that creates a "templates" folder at the root level of the project, and then creates a template using specified template Rmd and YAML files. If this is something people would want as well, I can submit these two changes as a pull request!
The text was updated successfully, but these errors were encountered:
However, I hesitate to merge this into workflowr. This is because I am actually investigating how to deprecate wflow_open() and its associated template. This is because it is hard to maintain a template (if I make a breaking change, a user would need to update every one of their Rmd files) as opposed to encapsulating this functionality inside a function, e.g. wflow_build().
However, even if the core workflowr material (e.g. the Git SHA1) are removed from the template, I could imagine changing wflow_open() to focus on using pre-made templates as you are doing.
Could you please send me the link to the workflowr project where you are using this template strategy so that I can experiment with it?
Sometimes there's a specific protocol that you are doing that follows the same vein, where it would be nice to just have a pre-populated skeleton. I personally went from copy-pasting the skeleton, to following the internal flow of wflow_open but with my skeleton file; I just wrote a proof-of-concept wflow_open() that simply adds a
template="default"
keyword argument that a user can change to specify the location of a properly-formatted template directory. To simplify that, I also wrote a wflow_template() function that creates a "templates" folder at the root level of the project, and then creates a template using specified template Rmd and YAML files. If this is something people would want as well, I can submit these two changes as a pull request!The text was updated successfully, but these errors were encountered: