Skip to contents

The default horizontal separator character which can be displayed in the current charset for use in rendering table-likes.

Usage

default_hsep()

set_default_hsep(hsep_char)

Arguments

hsep_char

character(1). Character that will be set in the R environment options as default for creating the horizontal separator. It needs to be single character. Use getOption("formatters_default_hsep") to get its current value (NULL if not set).

Value

unicode 2014 (long dash for generating solid horizontal line) if in a locale that uses a UTF character set, otherwise an ASCII hyphen with a once-per-session warning.

Examples

default_hsep()
#> [1] "—"
set_default_hsep("o")
default_hsep()
#> [1] "o"