i'm trying to do an "node" Class in R, like in java: but the code pop up an error, "The class node doesn't exist when i'm creating the value "Next="node" is it not possible to do recursion in a class in R? or how could i do this?
node <- setRefClass("node", fields = list(value="numeric", next="node"))
Error: inesperado '=' in "node <- node <- setRefClass("node", fields = list(value="numeric", next=""