Closed NewGraphEnvironment closed 3 months ago
similar issue here https://github.com/rstudio/pagedown/issues/182#issuecomment-668892654
i can confirm it is an issue with kableExtra::
calls. was tipped off by this https://github.com/jhelvy/renderthis/issues/46
I will keep narrowing it down and trying to fix
We also now have black font showing in table captions when the reports are served in Dark mode which is also new and unfortunate. this could be a bit of a large mess to untangle with so many tables already on the street. oh gee
adding this removes the warning ReferenceError: $ is not defined
but not the doubling of Table headers and the black font in dark mode.
We have at least two separate issues
chunk ``` {r jquery, echo=FALSE, eval=T} htmltools::tagList(rmarkdown::html_dependency_jquery()) triple_backtick ```
Phew.
Have dealt with double table captions in function with addition of label = NA
in
knitr::kable(caption = caption_text, booktabs = T, label = NA)
Issue with black text in dark mode has been dealt with in develpment version of kableExtra
so can be imported with
pak::pkg_install("haozhu233/kableExtra")
Gee wiz. Will close with label=NA fix
thank you for fixing all this!
This error does not occur when only Table 1.1 is built
may be related to https://github.com/NewGraphEnvironment/fpr/issues/30