Learn R Programming

settings (version 0.2.7)

Software Option Settings Manager for R

Description

Provides option settings management that goes beyond R's default 'options' function. With this package, users can define their own option settings manager holding option names, default values and (if so desired) ranges or sets of allowed option values that will be automatically checked. Settings can then be retrieved, altered and reset to defaults with ease. For R programmers and package developers it offers cloning and merging functionality which allows for conveniently defining global and local options, possibly in a multilevel options hierarchy. See the package vignette for some examples concerning functions, S4 classes, and reference classes. There are convenience functions to reset par() and options() to their 'factory defaults'.

Copy Link

Version

Install

install.packages('settings')

Monthly Downloads

2,223

Version

0.2.7

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

May 7th, 2021

Functions in settings (0.2.7)

defaults

Request default option values
options_manager

Create a new options manager.
settings

Convenient options settings management for R
inlist

Option checkers
reset_options

Reset general options in 'options' to factory defaults.
is_setting

Find out if we're setting or getting
reset

Reset options to default values
stop_if_reserved

Check for reserved option names.
reset_par

Reset graphical options in 'par' to factory defaults.
clone_and_merge

Create a local, altered copy of an options manager