[R] boolean SEXP interpretation upon function return

Duncan Murdoch murdoch.duncan at gmail.com
Fri Aug 5 13:08:23 CEST 2011


On 11-08-05 12:09 AM, Alexandre Aguiar wrote:
> Hi,
>
> When a function returns a SEXP of type LGLSXP (logical) to signal whether
> it succeeded or failed, how is it intrepreted? Is it like C where SUCCESS
> = 0 or other value?

Usually TRUE is used to signal success.  TRUE is non-zero.

Duncan Murdoch



More information about the R-help mailing list