我尝试了以下 rmarkdown 代码,但没有成功:
---
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}
没有表格显示为输出。
任何帮助将不胜感激。谢谢!