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

Conversions between bool and Rboolean #230

Merged
merged 5 commits into from
Apr 27, 2024
Merged

Conversions between bool and Rboolean #230

merged 5 commits into from
Apr 27, 2024

Conversation

CGMossa
Copy link
Member

@CGMossa CGMossa commented Apr 24, 2024

There are many places where bool and Rboolean are used and converted to and from each other in extendr-api.

This is an immediate convenience (safe) conversion that I think we should adopt.

There is a more controversial one, which is From<u32>, that I will propose after this one.

@CGMossa
Copy link
Member Author

CGMossa commented Apr 24, 2024

CI is failing for arbitrary reason:

Error: Failed to get R devel: Failed to get R 4.5.0: Failed to install R: Error: The process '/usr/bin/sudo' failed with exit code 100

@CGMossa
Copy link
Member Author

CGMossa commented Apr 24, 2024

@Ilia-Kosenkov Honestly, I can't find a good way to eliminate this. I believe we should just redefine Rf_isS4 with the correct conversion, and be done with it.

Copy link
Member

@Ilia-Kosenkov Ilia-Kosenkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this looks solid!

@CGMossa
Copy link
Member Author

CGMossa commented Apr 24, 2024

No-one merge please. I need to generate bindings first.

@CGMossa
Copy link
Member Author

CGMossa commented Apr 24, 2024

Oldrel is 4.3 and so is release (4.3). R4.4 was released today. We must await the re-shuffling.

@CGMossa CGMossa merged commit 9751fd1 into master Apr 27, 2024
@CGMossa CGMossa deleted the add_bool_conversions branch April 27, 2024 06:34
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

Successfully merging this pull request may close these issues.

2 participants