% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/options.R
\name{tabstats_options}
\alias{tabstats_options}
\title{Manage package options}
\usage{
tabstats_options(category = NULL, option = NULL, value = NULL)
}
\arguments{
\item{category}{A character string specifying the option category (e.g., "tab_default", "tab_digits").
If omitted, returns all option categories.}

\item{option}{A character string specifying the option to retrieve or modify within the category.
For backward compatibility, you can also use a specific option name directly as the \code{category} parameter.}

\item{value}{The new value to assign to the specified option. If NULL, the function returns the current value.}
}
\value{
If no arguments are provided, returns all option categories and their values.
If only \code{category} is provided, returns all options in that category.
If \code{category} and \code{option} are provided without \code{value}, returns the current value of that option.
If all parameters are provided, updates the option and returns the updated option category list invisibly.
}
\description{
This function allows retrieving or modifying the package options across different categories.
If called without arguments, it returns all option categories and their values.
If \code{category} is provided alone, it returns all options in that category.
If \code{category} and \code{option} are provided, it returns the specific option value.
If all three parameters are provided, it updates the specified option.
}
\examples{
# Get all options across all categories
tabstats_options()

# Get all options in the "tab_default" category
tabstats_options("tab_default")

# Get all options in the "tab_digits" category
tabstats_options("tab_digits")

# Get a specific option
tabstats_options("tab_default", "vb_top")
tabstats_options("tab_digits", "ex")

# Using backward compatibility (system will find the right category)
tabstats_options("vb_top")
tabstats_options("ex")

# Modify an option
tabstats_options("tab_default", "border_char", "+")
tabstats_options("tab_digits", "ex", 2)

# Using backward compatibility for modification
tabstats_options("border_char", "+")
tabstats_options("ex", 2)

}
