r - kableExtra: Hyperlink in footnote of a table -


i looked this question given method not seem work footnotes (see mwe). wonder how add hyperlink in table footnotes using kableextra package. highly appreciated. thanks

knitr::kable(               x       = mtcars[1:4, 1:5]             , format  = "latex"             , caption = "table caption hyperlink[note]"             , escape  = false             ) %>%   kableextra::add_footnote("\\href{https://github.com/haozhu233/kableextra}{kableextra}") 

with kableextra > 0.5.0, can use escape in footnote.

library(kableextra) knitr::kable(mtcars[1:4, 1:5],           format  = "latex",           caption = "table caption hyperlink[note]",           escape  = false         ) %>%   add_footnote("\\href{https://github.com/haozhu233/kableextra}{kableextra}",                        escape = f) 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -