call_safe | R Documentation |
Just a specialized version of call_conditionally
.
call_safe(f, dependency, fallback = "Fallback", ...)
f |
The function passed to |
dependency |
The external dependency, see Examples. |
fallback |
See Description. |
... |
arguments passed to |
The return value of f
or fallback
.
Other call functions:
call_conditionally()
call_safe(whoami::email_address, dependency = "whoami",
args = list(fallback = "foobar@nowhere.com"),
fallback = "nobar@nowhere.com")
call_safe(whoami::email_address, dependency = "this_is_not_installed",
args = list(fallback = "foobar@nowhere.com"),
fallback = "nobar@nowhere.com")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.