Examples for 'knitr::opts_knit'


Options for the knitr package

Aliases: opts_knit

Keywords: datasets

### ** Examples

opts_knit$get("verbose")
[1] FALSE
opts_knit$set(verbose = TRUE)  # change it
if (interactive()) {
    # for unnamed chunks, use 'fig' as the figure prefix
    opts_knit$set(unnamed.chunk.label = "fig")
    knit("001-minimal.Rmd")  # from https://github.com/yihui/knitr-examples
}
Warning in file(con, "r"): cannot open file '001-minimal.Rmd': No such file or
directory
Error in file(con, "r"): cannot open the connection

[Package knitr version 1.49 Index]