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

Rig doesn't return non-zero exit code when running scripts #261

Open
botan opened this issue Dec 14, 2024 · 0 comments
Open

Rig doesn't return non-zero exit code when running scripts #261

botan opened this issue Dec 14, 2024 · 0 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@botan
Copy link

botan commented Dec 14, 2024

Hello. I want to use rig run as Rscript replacement for running R scripts with different R versions. However, the rig doesn't return the script's exit code. Is there any way to forward scripts exit code out when using rig run?

rig --version
RIG -- The R Installation Manager 0.7.0

rig run -e "stop()"
Error:
Execution halted

echo $?
0

Rscript -e "stop()"
Error:
Execution halted

echo $?
1
@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants