View source: R/params_check_types.R
| check_single | R Documentation | 
Checks a set of variables are all of length one
check_single(
  ...,
  .message = "`{param}` is not length one: ({err}).",
  .env = rlang::caller_env()
)
| ... | a list of symbols | 
| .message | a glue specification containing  | 
| .env | the environment to check (defaults to calling environment) | 
nothing. called for side effects. throws error if not all variables can be coerced.
a = 1
b = "Hello"
g = NA
check_single(a,b,g)
c= c(1,2,3)
d=list(a,b)
try(check_single(c,d,missing))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.