| specify_lst | R Documentation |
specify_lst() creates a function that will call stabilize_lst() with the
provided arguments. specify_list() is a synonym of specify_lst().
specify_lst(
...,
.named = NULL,
.unnamed = NULL,
.allow_null = TRUE,
.min_size = NULL,
.max_size = NULL
)
specify_list(
...,
.named = NULL,
.unnamed = NULL,
.allow_null = TRUE,
.min_size = NULL,
.max_size = NULL
)
... |
Named stabilizer functions, such as |
.named |
A single stabilizer function, such as a |
.unnamed |
A single stabilizer function, such as a |
.allow_null |
|
.min_size |
|
.max_size |
|
A function of class "stbl_specified_fn" that calls
stabilize_lst() with the provided arguments. The generated function will
also accept ... for additional named element specifications to pass to
stabilize_lst(). You can copy/paste the body of the resulting function if
you want to provide additional context or functionality.
Other list functions:
stabilize_lst(),
stabilize_present(),
to_lst()
Other specification functions:
specify_chr(),
specify_dbl(),
specify_df(),
specify_fct(),
specify_int(),
specify_lgl()
stabilize_config <- specify_lst(
name = specify_chr_scalar(allow_na = FALSE),
version = stabilize_int_scalar,
debug = specify_lgl_scalar(allow_na = FALSE),
.unnamed = stabilize_chr_scalar
)
stabilize_config(list(name = "myapp", version = 1L, debug = FALSE, "extra"))
try(
stabilize_config(
list(name = "myapp", version = 1L, debug = FALSE, c("a", "b"))
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.