get_tidysq_options {tidysq} | R Documentation |
Obtain current state of tidysq options
Description
Subsets all global options to display those related to tidysq package.
Usage
get_tidysq_options()
Details
The user can display value of selected option by calling
getOptions(option_name)
and set its value with
options(option_name = value)
, where option_name
is an option
name and value
is a value to assign to an option.
Full list of options included in tidysq package is listed below:
tidysq_NA_letter [
character(1)
]
A letter to be used when printing, constructing or interpretingNA
value. Defaults to"!"
.tidysq_on_warning [
"silent" || "message" || "warning" || "error"
]
Determines the method of handling warning message. Setting"error"
makes any warning throw an exception and stop execution of the code. The difference between"message"
and"warning"
is that while both display warning text to the console, only the latter registers it so that it can be accessed with a call towarnings()
. Lastly,"silent"
setting causes any warnings to be completely ignored. Default value is"warning"
.tidysq_pillar_max_width [codeinteger(1)]
Determines max width of a column ofsq
class within atibble
. Default value is 15.tidysq_print_max_sequences [
integer(1)
]
Controls maximum number of sequences printed to console. If ansq
object is longer than this value, then only firsttidysq_print_max_sequences
are printed, just like in any R vector. Default value is 10.tidysq_print_use_color [
logical(1)
]
Determines whether coloring should be used to increase readability of text printed to console. While it is advised to keep this option turned on due to above concern, some environments may not support coloring and thus turning it off can be necessary. Defaults toTRUE
.tidysq_safe_mode [
logical(1)
]
Default value isFALSE
. When turned on, safe mode guarantees thatNA
appears within a sequence if and only if input sequence contains value passed withNA_letter
. This means that resulting type might be different to the one passed as argument, if there are letters in a sequence that does not appear in the original alphabet.
Value
A named list
with selected option
values.
See Also
Functions that display sequence info:
sqprint