-
Notifications
You must be signed in to change notification settings - Fork 28
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
Variant that exits (with a non-zero error code) if the check fails #51
Comments
IDK, it feel awkward if a function call can exit from your session. Maybe this could be handled by the script that calls it? E.g.
(The |
Or we can have another function that is a small wrapper? |
Yeah another function would work. It doesn't have to call $ R -q -e 'stop()'
> stop()
Error:
Execution halted
$ echo $?
1 |
Yeah, |
Do you want to fail on |
Btw. why would you run |
Jim started this partially from a discussion we had on Ropensci; I want to use |
I think having an option whether to stop for errors, warnings or notes makes the most sense. |
But you don't actually want to stop when a NOTE/WARNING/ERROR happens, right? Only after the check is complete? |
Yeah |
OK, added an |
This is useful for use in CI systems which fail the build when a command returns a non-zero exit status.
Could be a option in the
print.rcmdcheck
method or just an option inrcmdcheck::rcmdcheck()
directly maybe.The text was updated successfully, but these errors were encountered: