library(huxtable) knitr::opts_chunk$set(echo = FALSE)
head(iris) |> as_huxtable() |> set_caption('This is a table that should be numbered.')
Table \@ref(tab:iris) is cross-referenced.
head(iris) |> as_huxtable() |> set_caption('This is a table that should be numbered.') |> set_label('tab:foobar')
Table \@ref(tab:foobar) is cross-referenced.
head(iris) |> knitr::kable(caption = 'This is a table that should be numbered.')
Table \@ref(tab:iris-kable) is cross-referenced.
You can also embed plots, for example:
plot(pressure)
Figure \@ref(fig:pressure) is cross-referenced.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.