| .to_cls_scalar | R Documentation |
A helper that wraps around a to_*_scalar() function to provide a standard
set of checks.
.to_cls_scalar(
x,
is_rlang_cls_scalar,
to_cls_fn,
to_cls_args = list(),
allow_null = TRUE,
allow_zero_length = TRUE,
x_arg = caller_arg(x),
call = caller_env(),
x_class = object_type(x)
)
x |
The argument to stabilize. |
is_rlang_cls_scalar |
|
to_cls_fn |
|
to_cls_args |
|
allow_null |
|
allow_zero_length |
|
x_arg |
|
call |
|
x_class |
|
x as a scalar of the target class.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.