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

Uninformative error if session terminates #41

Closed
hadley opened this Issue Feb 21, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@hadley
Copy link
Member

hadley commented Feb 21, 2018

# devtools::install_github("romainfrancois/trump")

callr::r(function() library(trump))
#> Error in readRDS(res) : error reading from connection 
#> 3. readRDS(res) 
#> 2. get_result(output = out, options) 
#> 1. callr::r(function() library(trump)) 
@gaborcsardi

This comment has been minimized.

Copy link
Member

gaborcsardi commented Feb 21, 2018

This is "fixed" in R-devel, the problem is that saveRDS creates an output file, even if it fails. So on R-devel you get "child process crashed or was killed".

We can work around this, and assume that if the RDS file is corrupt, then the R process probably crashed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment