ESRI Shape reader

Prof Brian D Ripley ripley@stats.ox.ac.uk
Tue, 27 Jul 1999 07:56:20 +0100 (BST)


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, ...);
askok(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,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
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 http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._