Pass List argument to rmarkdown file (.Rmd)
<p>I am generating an HTML report using rmarkdown. I want to pass the list of the tables through <code>render</code> method but it's throwing me an error:</p>

<pre><code>Error in UseMethod("as.html") : 
no applicable method for 'as.html' applied to an object of class "character" 
</code></pre>

<p>Code Snippet:</p>

<pre><code>---
params: 
  tables: !r
---
```{r results='asis', echo=FALSE}
for(i in as.list(params$tables)){
  cat("######", as.html(i), "\n")
}

```
</code></pre>

<p>Please suggest a way to resolve.</p>

<p>Thank you for the help!</p>