r-lib / R6

Encapsulated object-oriented programming for R
https://R6.r-lib.org
Other
403 stars 56 forks source link

Document R6 reserved words #231

Open ahjota opened 3 years ago

ahjota commented 3 years ago

The R parser has a number of reserved words mentioned in the manual. Is there a similar list for R6?

I ask because I am generating an R client library for an API using OpenAPI Generator, and I am running into issues with R6 not allowing certain model property names as class items. I've filed an issue in their repo to address this, but I'm curious which words are reserved for use with R6.

The obvious ones are super, private, and self, specifically because there is an error message for those three. However, I've also seen an error message from initialize and very subtle errors with new.

Are there others?