Two things might be useful, please experiment with them:
a function that generates above skeleton, so that I can copy-paste it into my R script and start modifying it.
Perhaps it is too annoying though to adjust white spaces every time, let's see.
a function that takes an object AFTER the rules were added, and outputs the rules formatted like this.
The user could then copy-paste the nicely formatted rules into his Rscript, so that at least after developing the
code the script looks nice.
I solved 1. by writing the pype_code_template(). I'll close this for now, but if anyone thinks 2. is a great idea reopen this issue and I'm tempted to implement it!
I think readibility is improved if all calls to
rule
function share the same format. Here is a skeleton:Two things might be useful, please experiment with them:
Perhaps think about this more!