When a list contains empty lists, as.Node fails, like so
> a = list(1, list())
> as.Node(a)
Error in x[sapply(x, is.list)] : invalid subscript type 'list'
Error during wrapup:
I suppose that as.Node.list should check if a child list is empty before running on its children.
When a list contains empty lists,
as.Nodefails, like soI suppose that
as.Node.listshould check if a child list is empty before running on its children.