If I'm not wrong, there are two ways to create markdown tables with pander package: either use the pandoc.table() function or the generic function pander(). However with pander() function, it seems that you cannot use the arguments from pandoc.table()
For example :
library(pander)
data(iris)
pandoc.table(summary(iris), split.table="Inf")
pander(summary(iris), split.table="Inf")
With pandoc.table, the table is not split because of the argument split.table (that's the intended behavior). But with pander, the argument is ignored.
I see in the code of the function that the ... argument is present in pander.data.frame but is not respecified within it. :
> pander:::pander.data.frame
function (x, caption = attr(x, "caption"), ...)
{
if (is.null(caption) & !is.null(storage$caption))
caption <- get.caption()
pandoc.table(x, caption = caption)
}
Why not reuse the ... argument inside the function to allow passing arguments from pander to pandoc.table (like below)? There is maybe a good reason for this of course...
function (x, caption = attr(x, "caption"), ...)
{
if (is.null(caption) & !is.null(storage$caption))
caption <- get.caption()
pandoc.table(x, caption = caption,...)
}