co-analysis / a11ytables

R package: generate best-practice stats spreadsheets for publication
https://co-analysis.github.io/a11ytables/
Other
40 stars 3 forks source link

Limit `new_a11ytable()` to making a data.frame and running `as_a11ytable()` #80

Closed matt-dray closed 1 year ago

matt-dray commented 1 year ago

new_a11ytable() should only form a data.frame from the arguments provided by the user.

Currently it does another couple of things: two stop() calls and some cleaning of the inputs.

The implementation is cleaner if these steps were carried out within as_a11ytable().