R knitr: Possible to programmatically modify chunk labels?

前端 未结 3 455
慢半拍i
慢半拍i 2020-11-29 19:34

I\'m trying to use knitr to generate a report that performs the same set of analyses on different subsets of a data set. The project contains two Rmd files: the first file i

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 19:45

    There is a similar question posed here I was able to programmatically create r chunks and knit the outputs for use in a flexdashboard (quite useful) based on an arbitrary list of input plots using the knit_expand(text=) and r paste(knitr::knit(text = paste(out, collapse = '\n'))) methods.

提交回复
热议问题