title: rmarkdown::render() in cmd returns pandoc error
body: <p>I need to render forms with rmarkdown from a command line</p>
  <p>this is where I am:</p>
  <ul>
  <li>knit button in RStudio works fine</li>
  <li>function <code>rmarkdown::render(file.rmd)</code> in a .r file works when run in Rstudio</li>
  </ul>
  <p>Then I tried running this command in CMD</p>
  <p><code>c:\Program Files\R\R-4.0.2\bin\Rscript.exe&quot; -e &quot;rmarkdown::render('C:/file.rmd')</code></p>
  <p>and I get this error:</p>
  <p><code>Error: pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).</code></p>
  <p>In RStudio I sent</p>
  <pre><code>&gt; rmarkdown::pandoc_available()
  
  [1] TRUE
  </code></pre>
  <pre><code>&gt; rmarkdown::pandoc_version()
  
  [1] ‘2.7.3’
  </code></pre>
  <p>What am I missing here?</p>
  <p>By the way, I'm on Win10.</p>
  <p>Thanks.</p>