# NOT RUN {
printMachine <- R6::R6Class("printMachine",
public = list(initialize = function() {},
printer = function(str) print(str)),
active = list(Status = function() "Printing"))
pm <- printMachine$new()
# scope = public
R62Fun(printMachine, assignEnvir = topenv())
printer(pm, "Test String B")
# scope = active
R62Fun(printMachine, assignEnvir = topenv(), scope = 'active')
# note support for accessing only, cannot assign
# values to an active binding
Status(pm)
# }
Run the code above in your browser using DataLab