check_formats | R Documentation |
Utility functions for checking formats and alignments.
is_valid_format(x, stop_otherwise = FALSE)
check_aligns(algn)
x |
( |
stop_otherwise |
( |
algn |
( |
is_valid_format
returns TRUE
if x
is NULL
, a supported format string, or a function, and
FALSE
otherwise.
check_aligns
returns TRUE
if the provided alignments are supported, otherwise, an error is thrown.
If x
is a function, no check is performed to verify that it returns a valid format.
is_valid_format("xx.x")
is_valid_format("fakeyfake")
check_aligns(c("decimal", "dec_right"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.