I am trying to create a table using
knitr::kable(head(mtcars[, 1:4]), "simple")
knitr::kable(head(mtcars[, 1:4]), "pipe")
Although this should work according to https://bookdown.org/yihui/rmarkdown-cookbook/kable.html,
it just returns could not find function "kable_pipe".
knitr::kable(head(mtcars[, 1:4]), "html")
and
knitr::kable(head(mtcars[, 1:4]), "latex")
work perfectly fine.
Does anyone know why?