From sfalcon at fhcrc.org  Wed Nov  8 16:34:33 2006
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Wed, 08 Nov 2006 07:34:33 -0800
Subject: [Rd] Getting the name of a SEXP type in package code?
In-Reply-To: <Pine.LNX.4.64.0611080658030.25461@gannet.stats.ox.ac.uk> (Brian
	Ripley's message of "Wed, 8 Nov 2006 07:05:06 +0000 (GMT)")
References: <m24ptbe27p.fsf@ziti.local>
	<17744.51494.488768.338605@stat.math.ethz.ch>
	<Pine.LNX.4.64.0611080658030.25461@gannet.stats.ox.ac.uk>
Message-ID: <m2y7qm54vq.fsf@ziti.local>

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



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