View source: R/namespace_utils.R
Function to get the used namespace and prepend it to the function name.
This has the effect of replacing a provided function name, with the formal name which replicates the behaviour as it is when called in the current environment. This is designed to make conversions from conventional code to a package format easier.
When it is used on a function with no defintion, or a function which is a part of the base packages, it will simply return the input unchanged.
1 | get_used_namespace(.function_name)
|
.function_name |
The function name to get the formal name for. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.