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
This obviously isn't a bug, but I'm trying to work out the logic behind why print.report_table requires nested calls to both insight, and then parameters. There's something I've missed along the way in terms of why format table is contained within insight if it's used for pretty printing. Indeed, this could have been discussed in another thread and I've missed it.
I would like better understand this design decision, and the history behind it. Pending that answer, I do think it would be worthwhile documenting some of these processes more explicitly within the functions themselves (i.e., dev notes). This is just a suggestion, but it certainly makes contributing and debugging a little easier!
For context, the reason I ask this is that I have been experimenting with some Rmarkdown printing, but it's certainly not trivial to implement within the ecosystem of report. I wanted to follow how these tables were generated... here I am!
Hopefully I haven't missed something written elsewhere in the project. Cheers. 😀
The text was updated successfully, but these errors were encountered:
I think that insight::format_table() is mainly a table formatted converting a dataframe to a table-like display when printed in the console (adding columns separators, spaces etc.). Whereas parameters_table is mainly a function that renames some columns for pretty printing, for instance if it detects the presence of columns named CI_low and CI_high, it will merge into one column named for instance 95% CI
PS: we are currently finishing a restructuration that has seen some parts of parameters and report going into the new effectsize package. Hence, it is likely that report will have to be restructured quite a bit in the days to come.
In particular, I am thinking about creating two main functions, model_table and model_text. The former would pull performance, parameters and effect size data and merge them together nicely (rmarkdown printing will probably have to be connected at this level), and model_text will transform this table to text. Then, the report function will mainly run these two subfunctions and return it all.
Question and context
This obviously isn't a bug, but I'm trying to work out the logic behind why
print.report_table
requires nested calls to bothinsight
, and thenparameters
. There's something I've missed along the way in terms of why format table is contained withininsight
if it's used for pretty printing. Indeed, this could have been discussed in another thread and I've missed it.If I'm not mistaken, in effect the final call ends up being something like this within report:
I would like better understand this design decision, and the history behind it. Pending that answer, I do think it would be worthwhile documenting some of these processes more explicitly within the functions themselves (i.e., dev notes). This is just a suggestion, but it certainly makes contributing and debugging a little easier!
For context, the reason I ask this is that I have been experimenting with some Rmarkdown printing, but it's certainly not trivial to implement within the ecosystem of report. I wanted to follow how these tables were generated... here I am!
Hopefully I haven't missed something written elsewhere in the project. Cheers. 😀
The text was updated successfully, but these errors were encountered: