Re: [Rd] Getting the name of a SEXP type in package code?

From: Seth Falcon <>
Date: Wed 08 Nov 2006 - 15:34:33 GMT

Prof Brian Ripley <> writes:

> type2char is itself a fairly recent addition (there is also type2str,
> which is older) that I found useful for improving messages in R
> itself.
> I have not encountered such a need in package code, but the function
> is exported.
> This is not a request to move type2char from Defn.h to Rinternals.h,
> and I don't understand why not: what else is needed?

Because the dog ate that sentance. Moving type2char to Rinternals.h is all that is needed -- and type2str would be useful as well.

+ seth mailing list Received on Fri Nov 10 06:41:57 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 10 Nov 2006 - 02:30:40 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.