Re: ESRI Shape reader

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: ESRI Shape reader
From: Prof Brian D Ripley (
Date: Tue 27 Jul 1999 - 16:56:20 EST

Message-ID: <Pine.GSO.4.05.9907270744040.29983-100000@auk.stats>

NB: from the previous message, this is about Windows.

On Tue, 27 Jul 1999, Guido Masarotto wrote:

> On Tue, Jul 27, 1999 at 02:07:57PM +0800, Nicholas Lewin-Koh wrote:
> > Well Dr. Ripley helped me solve the first problem,

which was to use the makefiles for installing a package: it is much the
easiest way to work with compiled code in R (on Unix too).

> > next question
> > I need to do some debugging now that the function loads properly
> > into R. I checked the S documentation and to use the C I/O functions
> > you need to include newredef.h, this file doesn't exist in /src/include.

That is only true in S-PLUS 4.x (not S), and only needed in the GUI
version (splus.exe not sqpe.exe) as the console has not stdout stream
(the same as Rgui.exe).

> > How does this work in R? under S3.4 on a dec station i could use
> >
> > fprintf(stdout,..);
> > fflush(stdout);

It would be normal to use stderr for debugging.

> Previous lines works in Rterm but not in Rgui.
> For both, you can use 'REprintf', e.g.,
> REprintf("%s %d",aString,anInt);

An alternative, which I tend to use is,

char msg[1024];

sprintf(msg, ...);

which puts the contents of the message up in a message dialog box.
The trouble with Rprintf and REprintf is that they depend on the console
running properly and the information written not getting over-written.

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:06 EST