title: Calling Rmakdown document in a shiny application
body: <p>I have a <code>test.Rmd</code> file that has the following YAML content plus some other code chunks and statements: </p>
  
  <pre><code>---
  title: "Rmarkdown test"
  runtime: shiny
  output: html_document
  params:
       product: "abc"
       type: "xyz"
  ---
  </code></pre>
  
  <p>I would like to call this from a Shiny application and embed the result of rendering this test.Rmd file in the shiny output</p>
  
  <p>How do I call this from server.R ? I tried <code>output$text&lt;-render::rmarkdown('test.Rmd)</code>, with error <code>Error in .subset2(x, "impl")$defineOutput(name, value, label) :
    Unexpected character output for text</code> But I see that it generated the <code>test.html</code> file in the same location where ui.R and server.R are present.</p>
  
  <p>The ui.R entry I tested is <code>htmlOutput("text")</code> with same error as above.</p>
  
  <p>What is the correct way of calling the .Rmd file and generate the output in the shiny output window and also while calling .Rmd how to over-write the parameters? Any help?</p>