Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_result

Read the result object from the output file, or the error


Description

Even if an error happens, the output file might still exist, because saveRDS() creates the file before evaluating its object argument. So we need to check for the error file to decide if an error happened.

Usage

get_result(output, options)

Arguments

options

The context, including all parameters.

out

List of the output object from run() and the name of the result file to read. For the error file, .error is appended to this.

Value

If no error happened, the result is returned. Otherwise we handle the error.


callr

Call R from R

v3.7.0
MIT + file LICENSE
Authors
Gábor Csárdi [aut, cre, cph] (<https://orcid.org/0000-0001-7098-9676>), Winston Chang [aut], RStudio [cph, fnd], Mango Solutions [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.