Skip to content
New issue

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

S7 naming conventions #508

Open
JosiahParry opened this issue Nov 27, 2024 · 1 comment
Open

S7 naming conventions #508

JosiahParry opened this issue Nov 27, 2024 · 1 comment

Comments

@JosiahParry
Copy link

Related to #453

I am working on implementing S7 classes for arcgisutils and one thing I'm not quite sure on is how to handle the naming convention for S7 classes.

S7 exports classes with the prefix class_. Is it recommended that R packages that export S7 classes export it with the struct class_{class_name}?

@t-kalinowski
Copy link
Member

My understanding is that the class_ prefix is only for base S3 class proxies. For all other classes, we've adopted a convention of using CamelCase (more precisely, PascalCase) for the class name (which is also the name of the constructor).

This reminds me, I think it would be good to revisit #461 for the next release.

@mmaechler mmaechler changed the title S7 naming convetions S7 naming conventions Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants