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

Seth Falcon sfalcon at fhcrc.org
Wed Nov 8 16:34:33 CET 2006


Prof Brian Ripley <ripley at stats.ox.ac.uk> 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



More information about the R-devel mailing list