问题描述
虽然我想使用 Latex 将我的 Rmarkdown 文件渲染为 beamer pdf。我收到错误:
!定义中的非法参数号 \beamer@doifinframe
我只在标签列中得到这个。
title: ""
output:
beamer_presentation:
toc: false
keep_tex: false
params:
one_touch_plot: NA
classoption: "aspectratio=169"
---
```{r setup,include=FALSE}
library(ggplot2)
library(knitr)
library(markdown)
knitr::opts_chunk$set(echo = FALSE,warning = FALSE,message = FALSE)
```
\begin{frame}[fragile]
\begin{columns}[T]
\begin{column}{0.27\textwidth}
```{r,out.width='100%',out.height='38%'}
params$one_touch_plot
```
\end{column}
\hfill
\end{columns}
\end{frame}