hughjonesd / huxtable

An R package to create styled tables in multiple output formats, with a friendly, modern interface.
http://hughjonesd.github.io/huxtable
Other
321 stars 28 forks source link

Bookdown epub output not recognised in huxtable #230

Closed davidfoxcroft closed 1 year ago

davidfoxcroft commented 2 years ago

I'm using bookdown to create a book in different output formats: gitbook, pdf and epub. The original format for the book is Rmarkdown with tables created using huxtable.

html (gitbook) and latex (pdf) formats work fine, but huxtable doesn't recognise the epub output format so this breaks the build - see attached image. Could epub3 output be added to huxtable?

2022-10-17_09-19

hughjonesd commented 2 years ago

Have you tried just using as_html()? It seems that epubs use html internally. Or indeed follow the advice in the warning and set options(huxtable.knitr_output_format = "html").

hughjonesd commented 1 year ago

Closing. Please reopen if need be.