title: Combine multiple pages of .pdf into RMarkdown
body: <p>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:</p>
  
  <pre><code>---
  title: &lt;center&gt; &lt;h1&gt;Analysis Data&lt;/h1&gt; &lt;/center&gt;
  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}
  </code></pre>
  
  <p>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.</p>
  
  <p>Is it possible to pull through the entire .pdf's rather than just the first page?</p>
  
  <p>Thank you.</p>