check_args | R Documentation |
check_layer_args
simply looks at the arguments that is passed to it
and checks to make sure that at least one is not NULL.
avoid_duplicate_sf_args
ensures the presence of only one argument that
would result in a downstream spatial query (i.e. only a single sf object
can be used in a spatial query – this function ensures that only one will
be).
deparse_arg_names
is just a helper for the above two functions to
format argument names in a useful way
check_layer_args(...)
avoid_duplicate_sf_args(...)
deparse_arg_names(...)
... |
Any number of objects to be checked |
If any of ...
are not NULL, returns nothing. Otherwise stops
function execution.
## Not run:
a <- NULL
b <- NULL
check_layer_args(a, b)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.