[R] Installing Rstreams lib

Martina Pavlicova pavlicov at stat.ohio-state.edu
Sat Jun 2 02:21:51 CEST 2001


I thank prof Ripley for prompt answer. I did delete the problem parts of
the code in the C source file, which worked, but it slightly altered the
library. I did not know that there is a possibility to use a binary
connections in base R.

Thanks for the help.

Martina Pavlicova
--------------------------------------------------------------------------
Department of Statistics             Office Phone: (614) 292-1567
1958 Neil Avenue, 304E Cockins Hall  FAX: (614) 292-2096
The Ohio State University            E-mail: pavlicov at stat.ohio-state.edu
Columbus, OH 43210-1247              www.stat.ohio-state.edu/~pavlicov


On Fri, 1 Jun 2001, Prof Brian D Ripley wrote:

> > Unfortunately, I get these error messages:
> > ---------------------------
> > > [557] R CMD INSTALL Rstreams_1.1-2.tar.gz
> > Rstreams.c: In function `readfloat':
> > Rstreams.c:179: duplicate case value
> > Rstreams.c:173: this is the first entry for that value
> > Rstreams.c: In function `writefloat':
> > Rstreams.c:284: duplicate case value
> > Rstreams.c:278: this is the first entry for that value
> > make: *** [Rstreams.o] Error 1
> > ERROR: Compilation failed for package `Rstreams'
> > > [558]
> > --------------------------
>
> Eh?  That code says
>
>         case 8:
>             if (read(*handle, &d1, size) <= 0) goto enddata;
>             if (*swapbytes) swap(&d1, size);
>             result[i] = d1;
>             break;
> #if SIZEOF_LONG_DOUBLE > 8
>         case sizeof(long double):
>             if (read(*handle, &e1, size) <= 0) goto enddata;
>             if (*swapbytes) swap(&e1, size);
>             result[i] = (double) e1;
>             break;
> #endif
>
> and identical tests are used in the binary connections part of R itself,
> where they presumably did work. You may need to edit the src/config.h file,
> as it looks as if the configure script has got it wrong, and use R INSTALL
> --no-configure.
>
> Also there is very little that Rstreams can do that you cannot do as well
> with binary connections in base R.
>
> --
> Brian D. Ripley,                  ripley at 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-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list