title: run an R Markdown (check.Rmd ) and an R knitr (test.Rnw ) file together
body: <p>I have the following problem; There are 2 big documents, one written in <code>R Markdown</code> (check.Rmd ) and the other in <code>R knitr</code> (test.Rnw ). In the first doc we have a code like the following:</p>
  
  <pre><code>\section{Organisations Test}
  
  \textbf{Running Organisations Checks}
  
  &lt;&lt;CreateOrganisations, echo=FALSE, progress=TRUE, warning=FALSE, eval=TRUE&gt;&gt;=
  source("OrganisationsTest.R")
  OrganisationsTest(current_schema,server,user,pass)
  
  @
  </code></pre>
  
  <p>and in the other as follows:</p>
  
  <pre><code>  2. check the downwards shock
  ```{r chunk_Int_Sh_p2,  echo=FALSE}
  unique(param.int.shock.tab[SHOCKTYPE=="SHOCK_DOWN"&amp;PERIODEND&lt;21|PERIODEND==90, list( Maturity=PERIODEND, Shock_value=100*SHOCKVALUE)])
  ``` 
  </code></pre>
  
  <p>Now the question: how can I combine both so that I have just one script which runs and compile both one after each other. Just for clarification, I mean without any changes in both documents how can I have just one script which applyes to the first doc <code>knit PDF</code> to create pdf and to the other one <code>CompilePDF</code> ?</p>
  
  <p>I suppose in Linux one can write a shell script but what a bout using <code>RStudio</code> in windowes?
  I am really  grateful for every hint I am a little bit helpless!</p>
  
  <p><strong>Addendum</strong>: In principle it is as follows: we have 2 files if you would compile a knitr file you would use <a href="https://i.stack.imgur.com/PASUM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PASUM.png" alt="compilePDF"></a>  bottom in RStudio, and for a Markdown file one  may use <a href="https://i.stack.imgur.com/YKm7j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YKm7j.png" alt="KnitPDF"></a> bottom in RStudio, BUT we want to put both together and klick on one bottom. How is it possible?</p>