WillemSleegers / tidystats-v0.3

R package to produce a tidy output file of statistical models.
Other
22 stars 2 forks source link

Default results list for report #61

Closed arnoudplantinga closed 6 years ago

arnoudplantinga commented 6 years ago

Would it be weird to have a default for the results list in the report function? It's annoying to start with report(results, ...) everytime I want to report something.

WillemSleegers commented 6 years ago

I've been playing with that idea as well. It's a bit weird, but it might be worth it.

I've already implemented a version of this using options(). If you set 'tidystats_list' in options() to the name of your results list, then you do not need to supply it to the report() function anymore.

For example: report("M1_1") results in: t(199) = 24.22, p < .001

I did have to move the results argument in report() to the back of all the arguments, so if you want to explicitly set it, it will be last in line (which is not a big deal I think).

WillemSleegers commented 6 years ago

Regarding that latter issue, it does require that you explicitly mention the argument: results = results; which is a bit unfortunate.

WillemSleegers commented 6 years ago

Added this a while ago and I still like it, so closing it!