Convenience function to assign a value to a private field of an R6::R6Class instance.
Usage
get_private(x, which) <- value
Examples
library(R6)
item = R6Class("Item", private = list(x = 1))$new()
get_private(item)$x
#> [1] 1
get_private(item, "x") = 2L
get_private(item)$x
#> [1] 2