Below I have shared a code where I am facing an error after trying to Add a child node in a tree I created using the data.tree package of R software. The error
data.tree