Rerrmsg
Rerrmsg |
Purpose
Synopsis
function Rerrmsg:string
Return value
The last error message in case of errors, or the empty string otherwise.
Example
The following example prints an error message in case of errors in R evaluations:
Reval('missingfunction()')
if Rerrcode<>0 then
writeln('Something went wrong: ', Rerrmsg)
Rclearerr
end-if
Further information
The message returned by this function is a top-level description of the error. It is possible to also retrieve R own error message for example with
Rgetstr("geterrmessage()").
Related topics
