How do I create multiple outputs via pander()
in a knitted document "asis" ?
When I have multiple calls of pander
in a function, only the most recent one is shown in the HTML output. Here's an example:
tmp = function() {
pander('A')
pander('B')
pander('C')
}
tmp()
In the knitted document this gives: C
I could set panderOptions('knitr.auto.asis', FALSE)
or I could use cat()
so that the pander()
output is written to the standard output. But then it's formatted as code, not as part of the document. As I need pander()
to format a few tables for me, this does not help.