remedyOpts: Default and current remedy options

Description Usage Format Note Examples

Description

Options for functions in the remedy package. When running R code, the object remedy_opts (default options) is not modified by chunk headers (local chunk options are merged with default options), whereas remedy_opts_current (current options) changes with different chunk headers and it always reflects the options for the current chunk.

Normally we set up the global options once in the first code chunk in a document using remedy_opts$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 remedy_opts$get():

Usage

1
2
3

Format

An object of class list of length 5.

An object of class list of length 5.

Note

remedy_opts_current is read-only in the sense that it does nothing if you call remedy_opts_current$set(); you can only query the options via remedy_opts_current$get().

Examples

1

ThinkR-open/remedy documentation built on Aug. 26, 2020, 5:45 p.m.