Skip to contents

Set or get options for my package

Usage

gtl_options(...)

Arguments

...

Option names to retrieve option values or [key]=[value] pairs to set options.

Supported options

The following options are supported

  • languageThe default language

  • countryThe default country setting

  • themeThe default ggplot theme

  • modeThe default ggplot mode

  • opacityThe default opacity

Examples

# Retrieve default options
gtl_options("language")
#> [1] "en"
gtl_options("plot_standard_width")
#> [1] 63.5

# Change a setting and retrieve it
gtl_options(plot_standard_width = 25)
gtl_options("plot_standard_width")
#> [1] 25