How to output a paged_table() within a for loop (using spin() to generate Rmd from R code)

61 views
Skip to first unread message

Edoardo Marcora

unread,
Oct 8, 2018, 10:44:33 AM10/8/18
to knitr
I have figured how to have a for loop spit out Rmd using the pander package, e.g.:

for (df in dfs) {
    pandoc.header("header text", 1) %>% cat()
    df %>% pandoc.table(align="left") %>% cat()
}

but I would like to output a paged_table() using the rmarkdown package. It works just fine outside the loop!

Thanks for your help!

Dado
Reply all
Reply to author
Forward
0 new messages