opts_chunk
(default options) is not modified by chunk headers (local chunk options are
merged with default options), whereas opts_current
(current options)
changes with different chunk headers and it always reflects the options for
the current chunk.opts_chunkopts_current
list
of length 4.opts_chunk$set()
, so that all latter chunks will
use these options. Note the global options set in one chunk will not affect
the options in this chunk itself, and that is why we often need to set global
options in a separate chunk.Below is a list of default chunk options, retrieved via
opts_chunk$get()
:
opts_current
is read-only in the sense that it does nothing if
you call opts_current$set()
; you can only query the options via
opts_current$get()
.
A list of available options: