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

Makes Serial Config an Open Standard #53

Merged
merged 3 commits into from
Oct 4, 2024
Merged

Makes Serial Config an Open Standard #53

merged 3 commits into from
Oct 4, 2024

Conversation

shikokuchuo
Copy link
Owner

Previously serial_config() performed validation and created a specially-formatted object (constructable only through the R C API). The advantage of this was this didn't need to be re-validated at the point of being set.

However this prevents a 3rd party being able to simply create a configuration as a list without using the special constructor. This is somewhat inconsistent with what mirai (which this function supports) uses as a design concept elsewhere e.g. SSH configs created by mirai::ssh_config() are just simple lists).

Now validation occurs upon option setting as well, which is more robust behaviour as well as addressing the above.

@shikokuchuo shikokuchuo merged commit c522770 into main Oct 4, 2024
8 checks passed
@shikokuchuo shikokuchuo deleted the serialconfig branch October 4, 2024 10:09
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.

1 participant