powered by
Provides access to the private members of R6::R6Class objects.
get_private(x)
environment() of private members, or NULL if x is not an R6 object.
environment()
NULL
x
(any) Object to extract the private members from.
library(R6) item = R6Class("Item", private = list(x = 1))$new() get_private(item)$x
Run the code above in your browser using DataLab