Skip to contents

This function retrieves the available options from the dsopts package, optionally filtered by specified categories.

Usage

dsopts_available(categories = NULL, type = "all_of")

Arguments

categories

A vector of character strings specifying the categories of options to retrieve. If NULL (the default), all categories are considered.

type

A character string specifying the type of filter to apply when categories are specified. Default is "all_of".

Value

A sorted vector of names of available options. If categories are specified, only options from those categories are returned.

Examples

if (FALSE) {
# Assuming 'my_category' as a valid option category
available_opts <- dsopts_available(categories = 'my_category')
}