View source: R/HelperFunctions.R
valueOrFunction | R Documentation |
val
is a function, evaluate it, otherwise return val
If val
is a function, evaluate it, otherwise return val
valueOrFunction(val, ...)
val |
Function or value |
... |
Argument passed to |
valueOrFunction(3) # returns 3 valueOrFunction(`+`, 1, 2) # also returns 3 A = `+` valueOrFunction(A, 1, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.