powered by
Change the value of node name in the active graph.
name
set(name, value)
character scalar, name of the node that is changed.
R object, new value of the node.
nothing.
# NOT RUN { # Initialize a new computational graph. x <- cgraph$new() # Add a parameter a <- parm(20, name = "a") # Change value of a set(a, 40) # Evaluate a val(a) # }
Run the code above in your browser using DataLab