Я пытаюсь создать следующую таблицу (прилагается ниже) в rmarkdown beamer (Rstudio). Первоначально он работал, но с тех пор, как я обновил R (3.6.3) и Rstudio, он не работал. Я также обновил все pkgs и переустановил tinytex pkg, но он продолжает генерировать следующее сообщение об ошибке:
output file: dp02_slide.knit.md
! File ended while scanning use of \beamer@collect@@body.
<inserted text>
\par
<*> dp02_slide.tex
Error: LaTeX failed to compile dp02_slide.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See dp02_slide.log for more info.
Execution halted
---
title: "Big Business"
output:
beamer_presentation:
citation_package: natbib
theme: "boxes"
header-includes:
- \widowpenalties 1 150
- \usepackage{amsmath}
- \renewcommand{\bibname}{References}
- \usepackage{adjustbox}
- \usepackage{booktabs}
- \usepackage{tikz}
- \usepackage{verbatim}
- \usepackage{chronosys}
- \usepackage{stackengine}
- \usepackage{xcolor}
- \usepackage{babel}
- \usetikzlibrary{arrows.meta}
- \usetikzlibrary{arrows,decorations.markings}
- \usetikzlibrary{intersections}
- \usepackage[font=small]{caption}
- \usepackage{adjustbox}
- \usepackage{tabularx}
- \usepackage{pgfplots}
- \pgfplotsset{compat=1.16}
- \usepackage[makeroom]{cancel}
- \renewcommand{\bibname}{References}
- \usepackage{subcaption}
- \usepackage{wrapfig}
---
# Table 1
\begin{table}[h!]
\centering
\small
\begin{adjustbox}{width=\columnwidth,center}
\begin{tabular}{ccccc}
\hline\hline
Stages & \textit{Financial regimes} & \textit{Preferential target} & \textit{Loan interest rates} & \begin{tabular}{@{}c@{}c@{}}\textit{Inequality} \\ \textit{trends} \\ \textit{(prediction)} \end{tabular} \\ [0.5ex]\hline
Stage I (1960s) & \begin{tabular}{@{}c@{}c@{}}Repressed\\(Industry-neutral) \end{tabular} & Exporting firms & \begin{tabular}{@{}c@{}c@{}}Preferential rate ($r^{I}$)\\(based on \\export performance) \end{tabular}&$\searrow$?\\[1ex]\hline
\end{tabular}
\end{adjustbox}
\end{table}
Изображение:
![enter image description here](https://i.stack.imgur.com/xDxRD.png)