Learn R Programming

knitr (version 0.6.3)

opts_chunk: Default and current chunk options

Description

Options for R code chunks. When running R code, the object opts_chunk (default options) is not modified by chunks (local chunk options are merged with default options), whereas opts_current (current options) changes with different chunks.

Usage

opts_chunk

opts_current

Arguments

format

List of 4 $ get :function (name, default = FALSE) $ set :function (...) $ merge :function (values) $ restore:function ()

References

Usage: http://yihui.name/knitr/objects

A list of available options: http://yihui.name/knitr/options#chunk_options

Examples

Run this code
opts_chunk$get("prompt")
opts_chunk$get("fig.keep")

Run the code above in your browser using DataLab