Hi, puja.
Use below function to create a tree from the nested list.
as.Node(x, mode = c("simple", "explicit"),
nameName = "name", childrenName = "children", nodeName = NULL,
check = c("check", "no-warn", "no-check"), ..)
FromListExplicit(explicitList, nameName = "name",
childrenName = "children", nodeName = NULL, check = c("check",
"no-warn", "no-check"))
FromListSimple(simpleList, nameName = "name", nodeName = NULL,
check = c("check", "no-warn", "no-check"))
Ex:
FromListSimple(nested_list, nodeName = "Root name")