I tried the following rmarkdown code, but with no success:
---
title:
output:
pdf_document:
latex_engine: pdflatex
header-includes:
\usepackage{multicol}
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(huxtable)
```
```{r echo=FALSE, results='asis'}
m <- rbind(c("A","B"),
c("C","D"))
ht <- huxtable(m)
```
\begin{multicols}{2}
\begin{enumerate}
\item `r ht`
\item `r ht`
\item `r ht`
\item `r ht`
\end{enumerate}
\end{multicols}
No table is shown as output.
Any help would be greatly appreciated. Thanks!