[Rd] source definition for R_NilValue/return from TYPEOF(R_NilValue)

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Mon Dec 16 11:33:34 CET 2019

On Sun, 15 Dec 2019 10:47:11 +0000
Dan Kortschak <dan.kortschak using adelaide.edu.au> wrote:

> I'd like to see the source definition of R_NilValue, but after
> fair bit of searching I cannot find an obviously location for this.
> Would someone please point me in the right direction?

As far as I understand, the assignment to R_NilValue happens in


(see the definition of GET_FREE_NODE(s) in the same file)

Besides declaring R_NulValue as "extern" and assignments in void
InitMemory(), there doesn't seem to be anything else.

Best regards,

More information about the R-devel mailing list