Learn R Programming

styler (version 0.0-8)

create_node_from_nested_root: Convert a nested tibble into a node tree

Description

This function is convenient to display all nesting levels of a nested tibble at once.

Usage

create_node_from_nested_root(pd_nested)

Arguments

pd_nested

A nested tibble.

Value

An object of class "Node" and "R6".

Examples

Run this code
# NOT RUN {
code <- "a <- function(x) { if(x > 1) { 1+1 } else {x} }"
nested_pd <- styler:::compute_parse_data_nested(code)
initialized <- styler:::pre_visit(nested_pd, c(styler:::initialize_attributes))
styler:::create_node_from_nested_root(initialized)
# }

Run the code above in your browser using DataLab