Skip to content

ESRI Shape reader

3 messages · Nicholas Lewin-Koh, Brian Ripley, Guido Masarotto) (Guido Masarotto

#
Well Dr. Ripley helped me solve the first problem, 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.
How does this work in R? under S3.4 on a dec station i could use

fprintf(stdout,..);
fflush(stdout);

thanks,

Nicholas

PS If I should be sending these questions to r-help instead let me know.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
NB: from the previous message, this is about Windows.
On Tue, 27 Jul 1999, Guido Masarotto wrote:

            
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).
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).
It would be normal to use stderr for debugging.
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.
#
On Tue, Jul 27, 1999 at 02:07:57PM +0800, Nicholas Lewin-Koh wrote:
Previous lines works in Rterm but not in Rgui.
  For both, you can use 'REprintf', e.g.,

  REprintf("%s %d",aString,anInt);

  This is a function exported by R.dll. So to get it properly linked
  you have:
  (i) to install also the rwXXXsp.zip file;
  (ii) to regenerate libR.a (the import library for R.dll);
  (iii) to link your dll against libR.a (-L/path-to-libR.a -lR)

  Alternative: use 'gdb'; details on Brian's rw FAQ.

  guido
    






-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._