RConsortium / S7

S7: a new OO system for R
https://rconsortium.github.io/S7
Other
399 stars 33 forks source link

doc: is exporting a class the same as the constructor #453

Open JosiahParry opened 3 weeks ago

JosiahParry commented 3 weeks ago

Related https://github.com/RConsortium/S7/issues/348

The package website says:

"If you export a class, you must also set the package argument, ensuring that classes with the same name are disambiguated across packages."

What I am not clear of here is if exporting a class is the same as exporting the constructor. Is this the case?

I think a super simple code example with #' @export in this section would do wonders to clarify that.

Additionally, in this context, is there a naming convention we should follow for the class constructors? (I could make a new issue for this if desired)