You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, pander is integrated with knitr by default. pander simply identifies if knitr is running in the background, and if so, it uses capture.output to return the resulting string as an knit_asis object, meaning that you do not need to specify the results='asis' option in your knitr chunk:
I copy the reprex
---title: "Reprex"date: "11/03/2021"output: html_document---```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)library(pander)```# R Markdown```{r cars}
for(i in 1:10){ pandoc.header(paste("Section", i), level = 2)}```
Thank you!
The text was updated successfully, but these errors were encountered:
pandoc.header
does not work inside a loop on an rmarkdown chunk withresults='markup'
, while it works withresults='asis'
.I ask the same question as here (https://stackoverflow.com/questions/66580211/how-to-change-chunk-options-results-formatting-inside-a-loop-in-a-chunk), because of the claim:
I copy the reprex
Thank you!
The text was updated successfully, but these errors were encountered: