What arguments are required in the R6Class?

DWQA QuestionsCategory: R LanguageWhat arguments are required in the R6Class?
Editor Staff asked 9 months ago

What arguments are required in the R6Class?

1 Answers
Editor Staff answered 9 months 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.