Reference Semantics (R6)

If you create a new object R6 object.

y1 <- R6::R6Class("Y", list(a = 1, b = 1))$new()

An you copy that object.

y2 <- y1