Open jankatins opened 8 years ago
mainly because at the time, i just wrote a bunch of reprs for several kinds of objects and didn’t know that there were packages already doing that specifically for tabular data.
we could use them but then we’d have to use an option adapter (i.e. translate repr options to the specific packages’ equivalents)
IMO we could either
repr_markdown.data.frame <- function(x)
paste(capture_output(pander.data.frame(x)), collapse="\n")
or do a
repr_markdown.data.frame <- pander.data.frame
when/if pander supports a return mode...
Same for xtable...
Re options: why not simple tell them the pander options? Would make things like https://github.com/IRkernel/repr/issues/14 much easier...
@daroczig raised the very valid point in https://github.com/Rapporter/pander/pull/251, that we should not (re)implement how we do html and MD conversation of standard objects in repr: