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

Rserve starts even if R code in source/eval fails #94

Open
dselivanov opened this issue Dec 24, 2017 · 1 comment
Open

Rserve starts even if R code in source/eval fails #94

dselivanov opened this issue Dec 24, 2017 · 1 comment
Assignees

Comments

@dselivanov
Copy link

dselivanov commented Dec 24, 2017

Hi Simon. After googling and browsing source code I didn't find answer. Is there possibility to prevent Rserve to start if there are errors in R code in file specified in source argument in configuration? Now it seems Rserve starts anyway.

Thanks in advance.

@s-u
Copy link
Owner

s-u commented Dec 25, 2017

Good question. You're right that Rserve doesn't check the error status - I could add an option to do that. In the meantime you may try to quit R on error, e.g. something like

tryCatch({ ... }, error=function(e) { cat("ERROR: ", as.character(e)); quit("no") })

@s-u s-u changed the title [question] Is there any way to make Rserve fail to start when there are errors in source argument? Rserve starts even if R code in source/eval fails Dec 25, 2017
@s-u s-u self-assigned this Dec 25, 2017
dselivanov added a commit to rexyai/RestRserve that referenced this issue Dec 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants