Skip to contents

This function merges user-defined options with the default options from the dsopts package. If a category is specified, only options from that category are considered. User-defined options overwrite the default ones.

Usage

dsopts_merge(..., categories = NULL)

Arguments

...

User-defined options to merge with the defaults.

category

A character string specifying the category of options to merge. If NULL (the default), all categories are considered.

Value

A named list of merged options. If a category is specified, only options from that category are returned.

Examples

if (FALSE) {
# Assuming 'my_option' as a valid option name and 'my_category' as a valid option category
merged_opts <- dsopts_merge(my_option = 'my_value', category = 'my_category')
}