This function is used to recover an error in a R script run by a RProcess module such as
In general, if the R script runs into an error its shiny session will never know about it.
This functions, reports this error to the shiny session and writes a log if desired.
R expression to be evaluated
ProcessInfo object or
For correct communication with the shiny session an ProcessInfo object given (argument
If a log file exists, it is appended with the error message.
If a session id exists the log is prefixed with it.
If a process id exists, before writing anything the loaded process id is compared with the current one – read from the
If they do not match the R session ends with a call to
This ensures that, in case a newer version of the same process is running, the current one will quit and not overwrite anything.
NULL (if error occured) or result of evaluated expr
These Rscript communication functions are used in R scripts started by a RProcess module such as
For some examples on how they work together see the vignette RProcess Module Functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.