From sfalcon at fhcrc.org  Wed Jun  6 06:23:40 2007
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Tue, 05 Jun 2007 21:23:40 -0700
Subject: [Rd] missing IntegerFromString()
In-Reply-To: <6BA3828721B5434DAAE1E65C25715A6E1ABAA0@dph002.hpi-mcw.lan>
	(Aniko Szabo's message of "Mon, 4 Jun 2007 14:54:04 -0500")
References: <6BA3828721B5434DAAE1E65C25715A6E1ABAA0@dph002.hpi-mcw.lan>
Message-ID: <m2tztlpv77.fsf@ziti.local>

Hi Aniko,

"Aniko Szabo" <aszabo at hpi.mcw.edu> writes:

> I have created a DLL not so long ago using C code. My code used the
> IntegerFromString() function that used to be exported in the
> Rinternals.h header file (and thus easily accessible). Recently I
> upgraded to R 2.5.0 and my DLL stopped working. I see that the
> IntegerFromString() function is not exported in any of the header files
> in the RHOME\include directory. Is it possible for me to use it without
> installing all R source files? I can see that the function is in
> coerce.c, however it #includes other stuff that I don't have and I am
> afraid to mess things about by doing things I don't understand. Or
> perhaps there is another function that is intended to be used
> instead?

I think you want asInteger (which calls IntegerFromString).  This is
in RHOME/include/Rinternals.h

Best Wishes,

+ seth

PS: Nice to see you again :-)


-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
http://bioconductor.org



[Rd] missing IntegerFromString()
Seth Falcon