Learn R Programming

sinew (version 0.4.0)

sinew_opts: Default and current sinew options

Description

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

Usage

sinew_opts

sinew_opts_current

Arguments

Format

An object of class list of length 5.

An object of class list of length 5.

Details

Normally we set up the global options once in the first code chunk in a document using sinew_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.

A list of default chunk options, can be retrieved via sinew_opts$get()

Examples

Run this code
# NOT RUN {
sinew_opts$get()
# }

Run the code above in your browser using DataLab