What arguments are required in the R6Class?

Category: R LanguageWhat arguments are required in the R6Class?
Editor">Editor Staff asked 2 years ago

What arguments are required in the R6Class?

1 Answers
Editor">Editor Staff answered 2 years ago

In order to create an R6 class in R, the following arguments are required –
The first argument in the R6 class is the classname itself. It improves the error messages and
allows us to make use of R6 objects with the given S3 generics.
The second argument of the R6 argument is ‘public’. This argument provides several methods and
fields which make use of snake_case.
Did you answer the above question? If no, you can revise the concept of arguments in R with
DataFlair’s detailed guide.