Closed krlmlr closed 8 months ago
get_exit_status() doesn't seem to be useful:
get_exit_status()
p <- callr::r_bg(function() stop(), error = "error") p$wait() p$get_exit_status() #> [1] 0 writeLines(p$read_all_error_lines()) #> Error in (function () :
Created on 2024-01-18 with reprex v2.0.2
Call p$get_result() and it'll throw a callr_status_error if there was an error in the subprocess.
p$get_result()
callr_status_error
get_exit_status()
doesn't seem to be useful:Created on 2024-01-18 with reprex v2.0.2