Hi,

Need your advice on how to best approach this.

I am building a function, that would automatically generate multiple tables and graphs.

For example:

Table 1 - a summary table that compares two GLM objects

Table 2 - Model summary and model comparison coming from sjPlots

Then a graphs which would look something like this (4 charts arranged to be as one)

All the tables and charts are coming from a single function

There are two options now:

1 - use rmarkdown

2 - create pdf

I am leaning towards using rmarkdown for now.

```
Call_all_modelling_functions <- function(
GLM_model
,df
){
# If doesn't exist, create a list of CM and RM
Create_RM_and_CM_list()
# Set RM and CM models
Set_RM_and_CM(GLM_model)
# Summary table page
# Returns ms_summary_table. This needs to be printed into rmarkdown
kable(create_summary_table_for_CM_and_RM())
# Summary model page
# returns model summary from sjPlots. This needs to be printed into rmarkdown
CM_and_RM_model_comparison()
# Variable plots
# Not developed yet
# Residual plots
# Not developed yet
}
```

I then call this function in r chunk in markdown. Problem is, it prints only the last table/chart when knitting into html.

Can someone give me some guidelines on how to print all tables and charts from this single function?

Thanks