RClearErr()

Clears the error status (value, description and context).

Synopsis

void RClearErr();

Description

Clears the error status (value, description and context).

Example

In this example an error status is created and then cleared.

#uses "CtrlR"
main()
{
  RSetErrLock(1); //Sets the error lock, see RSetErrLock()
  REvalExp(0, "1/0"); //Causes an error
  DebugN(REvalExp(0, "1+1"));//The debug cannot be executed
  RClearErr(); //clears the error
  DebugN(REvalExp(0, "1+1"));//the debug is executed
}

Assignment

R Functions

Availability

R Control Extension

See also

RSetLastErr() and RSetErrLock()