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

Validation of scalar variable expected to be positive #152

Merged
merged 3 commits into from
Aug 19, 2024
Merged

Validation of scalar variable expected to be positive #152

merged 3 commits into from
Aug 19, 2024

Conversation

mcol
Copy link
Contributor

@mcol mcol commented Aug 19, 2024

This can help to uniform the input validation throughout the codebase.

mcol and others added 2 commits August 19, 2024 16:34
This can help to uniform the input validation throughout the codebase.
I've slightly modified a few lines to meet the package habits.
@mcol
Copy link
Contributor Author

mcol commented Aug 19, 2024

I don't think throw_error() is ready to be used from a nested function:

> .validate_positive_scalar(iris)
Error: [.validate_positive_scalar()] 'iris' must be a positive scalar[iris()] 'iris' must be a positive scalar

Go back to previous stop
@RLumSK RLumSK merged commit 1b907a6 into R-Lum:dev_0.9.x Aug 19, 2024
10 checks passed
@mcol mcol deleted the validate_positive_scalar branch August 19, 2024 17:06
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