View source: R/context_roots.R
| context_roots | R Documentation |
Returns a normalized character vector of contextual roots from either:
context_roots(x)
x |
Character vector of contextual roots or a named list of contextual definitions. |
a character vector of contextual roots;
a named list of contextual definitions.
The function:
flattens contextual roots;
normalizes filesystem separators;
removes trailing separators;
validates uniqueness.
This is the public interface for obtaining contextual aggregation boundaries from context definitions.
A normalized character vector of unique contextual roots.
mini_context <- list(
packages = c(
"D:/packages/examplepkg",
"C:/packages/examplepkg"
),
research = "D:/research/projectA"
)
context_roots(mini_context)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.