opts_chunk

0th

Percentile

Default and current chunk options

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.

Keywords
datasets
Usage
opts_chunk

opts_current

format

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

References

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

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

Aliases
  • opts_chunk
  • opts_current
Examples
opts_chunk$get("prompt")
opts_chunk$get("fig.keep")
Documentation reproduced from package knitr, version 0.9, License: GPL

Community examples

Looks like there are no examples yet.