Closed cswingle closed 7 years ago
workaround:
pandoc.table(mtcars %>% tibble::as_data_frame()
;-)
Or use the current development release an push the development crew to release pander 0.7 asap or better NOW! ;-)
@NMarkgraf Thanks. I didn't think to try the dev version, but I see at https://github.com/Rapporter/pander/blob/master/R/pandoc.R#L780 that this is what's happening inside the code.
Yes, it was fixed in the dev version quite a long time ago, but the CRAN version is very outdated now :( Will try to push an updated in the near future.
devtools::install_github('Rapporter/pander') that should solve your problem
@fderyckel Thanks. That does indeed solve my problem. Cheers.
Any chance this will be going out to CRAN in the near future? I have package updates which are blocked on this at the moment. 😢
Ouch. I should have done that a long time ago ... Will push pander 0.7 to CRAN this weekend.
0.6.1
was just submitted to CRAN after some R CMD check
cleanups, so I hope this to be published pretty soon by the automated checks.
EDIT THIS COMMENT WAS WRONG I WAS RUNNING AN OLD VERSION.
Just to help anyone else visiting this page, the workaround:
pandoc.table(mtcars %>% tibble::as_data_frame()
Doesn't work on my machine, but:
... removed for brevity
@ChrisBeeley can you share your R session info? Sounds like an outdated pander
version?
I'm so sorry. You are completely right. I was sure I had the 0.6.1 version but I have now checked and I was running the older 0.6.0. Apologies. It runs fine now.
In the past I was able to pass a tibble to
pandoc.table
, but when I do that now, I get an error. It's possible this is an R 3.4.0 error, but I suspect it's something related to the newdplyr
ortibble
packages that came out a couple days ago. This isn't a major issue because I can always just convert the tibble to a data.frame before passing it topandoc.table
.For example:
Session info: