title: rmarkdown render report doesn't work on server: render params not declared in YAML
body: <p>Code works in local R Studio but html report from Shiny server does not download. I checked logs:
  <strong>Warning: Error in knit_params_get: render params not declared in YAML: projdata, userinfo
  [No stack trace available]</strong></p>
  <p>Part of the code from server.R:</p>
  <pre><code>out &lt;- rmarkdown::render('reppu_report_template.Rmd',
                               params = list(
                                 data_BU = inter_data_filter_react_report(),
                                 data_BU_month = inter_data_filter_react_report_month(),
                                 organizations = input$inter_filter_org,
                                 timelimit = input$inter_filter_time,
                                 en_time = update_time(),
                                 projdata = projdata(), 
                                 userinfo = userinfo() 
                               ),
                               rmarkdown::html_document()
      )
      file.rename(out, file)
  </code></pre>
  <p>from Rmd part:</p>
  <pre><code>output: html_document
  params:
  text: 'NULL'
  data_BU: 'NULL'
  data_BU_month: 'NULL'
  organizations: 'NULL'
  timelimit: 'NULL'
  en_time: 'NULL'
  projdata: 'NULL'
  userinfo: 'NULL'
  </code></pre>
  <p>In Rmd all params are accessed via params$data_BU except projdata and userinfo data. They are accessed:</p>
  <pre><code>userdata &lt;- userinfo()
  
  usersum &lt;- userdata  %&gt;%
    filter(logindisabled != TRUE | is.na(logindisabled))  %&gt;%
    filter(year &gt;= startyear &amp; year &lt;= endyear) %&gt;%
    distinct(id_user) %&gt;%
        count()
  
  projectdata &lt;- projdata()
  opened_projects &lt;- projectdata %&gt;%
    filter(!is.na(cscprjopendate) &amp; cscprjopendate %within% times &amp; cscprjscope != &quot;personal&quot;) %&gt;%
    select(cscprjnum) %&gt;%
    distinct(cscprjnum) %&gt;%
    count()
  </code></pre>