View source: R/collapse_namespace.R
| collapse_namespace | R Documentation |
If node is a Namespace (a call to :: or :::), this
function returns the Symbol the Namespace affects and stores associated
namespace information in the namespace field of that Symbol. If
node is not a Namespace, this function returns node unchanged.
collapse_namespace(node, ...)
node |
(ASTNode) The node to collapse. |
... |
Unused arguments. |
This function is intended as a replace function for replace_nodes().
code = quote_ast(rstatic::collapse_one_namespace)
replace_nodes(code, collapse_namespace)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.