Open clarabicalho opened 5 years ago
I think you are approaching the limit of understandability for pasting strings together and eval'ing it - I would really recommend spending a little time trying alternative solutions, perhaps the glue package or the template package.
I agree there are high maintenance costs to adding
fixed
functionality and using quasi-quotation in all designers, but also think that there's value to (a) more flexible designer functions that will print the exact code users need and (b) providing some example of the source code for generating more flexible designers (that are not overwhelming like, say,factorial_designer
). I'm happy to write vignette on that if useful. What are thoughts on using this approach with simple_two_arm_designer()?The "fixed_two_arm" branch implements it and I think code is fairly straight forward. Allows users to substitute all parameter values in code text and change outcome and assignment column names, for example.