I am using RMarkdown to pull various .pdf's into one central file. These .pdfs are multiple pages in length. The code that I am using is:
---
title: <center> <h1>Analysis Data</h1> </center>
mainfont: Arial
output:
pdf_document:
latex_engine: xelatex
sansfont: Arial
fig_crop: false
toc: true
classoption: landscape
fontsize: {10}
geometry: margin=0.30in
header-includes:
- \usepackage{booktabs}
- \usepackage{sectsty} \sectionfont{\centering}
- \renewcommand{\contentsname}{}\vspace{-2cm}
---
# File One
\begin{center}
\includegraphics[width=9.5in]{~/Desktop/DatasetOne.pdf}
\end{center}
\newpage
# File Two
\begin{center}
\includegraphics[width=9.5in]{~/Desktop/DatasetTwo.pdf}
\end{center}
However, when I knit the final .pdf together, only the first page of each .pdf document ("DatasetOne.pdf" and "DatasetTwo.pdf") are included and not the entire document.
Is it possible to pull through the entire .pdf's rather than just the first page?
Thank you.