-
Notifications
You must be signed in to change notification settings - Fork 298
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
Support typed lib #2229
Comments
That would draw in two direct, and several more indirect dependencies. Can this also be done in an add-on package, like |
There is no hard reason to be inside nor out of the SF package. But there is some considerations I think would be great to think of.
I think that would be the main reasons, I think an addon package would be the case if a package has several types, but not that great if there is only a few them. |
I'll give it a thought when I have time to explore this. Another thing I'd like to explore is R7, which is also about stricter type handling afaict. |
Hi, the background can be found here luukvdmeer/sfnetworks#255.
The summary, the "typed" helps to force types of data on variables and function's parameters, which is great to finally get order on R's code.
The feature request, is support inside sf the data types of it.
As example:
Now can create variable a params where we only accept geomtries, and we can say which want must be:
I have created a sample, which has SF, SFC, SFG, in order to do it works SF, I have created a custom Data.frame assertion, which allow us to check custom assertions by columns.
The feature request is have inside the package something like
sf::typed_geometry
or similar functions, so we can use typed objects with the project.typed_sf.zip
Thx
The text was updated successfully, but these errors were encountered: