getFun | R Documentation |
Extract a function by name with or without namespace prefix
getFun(fun)
fun |
A character vector of length one, denoting the function to extract. May be prefixed with a namespace (or not). |
Most useful to create one-off functions where one wishes to call a specific function without loading the library, and also to access non-exported functions. See examples.
A function matching fun, or NULL
(with a message) if an error.
See (and heed) documentation within getFromNamespace
, which this function
uses.
getFun("getFun") getFun("getFun()") # paren pairs are stripped if included getFun("stats::acf()") getFun("stats:::[[.dendrogram")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.