Learn R Programming

cleanr (version 1.1.3)

get_cleanr_options: Get options for cleanr

Description

A convenience function for getOption.

Usage

get_cleanr_options(..., remove_names = FALSE, flatten_list = TRUE)
gco(..., remove_names = FALSE, flatten_list = TRUE)

Arguments

...
remove_names
[boolean(1)] Remove the names?
flatten_list
[boolean(1)] Return a vector?

Value

a (possibly named) list or a vector.

Examples

Run this code
get_cleanr_options("max_lines")
get_cleanr_options("max_lines", remove_names = TRUE)
get_cleanr_options("max_lines", flatten_list = TRUE)
get_cleanr_options("max_lines", flatten_list = TRUE, remove_names = TRUE)
get_cleanr_options(flatten_list = TRUE, remove_names = TRUE)
get_cleanr_options(c("max_lines", "max_lines_of_code"))

Run the code above in your browser using DataLab