I'm looking for a way to adjust functions which usually show html tables in the viewer or browser in a way that they automatically insert the html in knitr documents like rnotebooks when called.
Specifically I want to change the way functions in the package sjPlot behave. At the moment they return an object with a $knitr
attribute that has to be inserted manually and then produce an html table in the viewer:
`r sjt.frq(efc$e42dep, no.output=TRUE)$knitr`
One of these functions is sjt.frq. Is there a way to do this?