We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some OO designs may make use of a class-level member. For example, incrementing a serial number:
Employee <- R6::R6Class("Employee", class_member = list(count = 0), public = list( initialize = function(name){ self$name <- name self$class$class_member$count <- self$id <- self$class$count + 1 }, id = NULL name = NULL )) john <- Employee$new("John") mary <- Employee$new("Mary") john$id # [1] 1 mary$id # [1] 2
Depends on #225.
The text was updated successfully, but these errors were encountered:
This sounds similar to having Java-style static members: #222 (comment)
Sorry, something went wrong.
Thanks, I think this is an exact duplicate... Wasn't using static when searching for existing issues.
No branches or pull requests
Some OO designs may make use of a class-level member.
For example, incrementing a serial number:
Depends on #225.
The text was updated successfully, but these errors were encountered: