[R] zeros in table() output in version 1.3.1

Steve Shiboski steve at biostat.ucsf.edu
Fri Oct 26 18:34:14 CEST 2001


It turns out to be associated with the compilation flags
I put in the config.site file for the Sun C compiler.
Recompiling with the default flags chosen by R eliminates
the problem.

I put the following flags in config.site before building:

 CFLAGS=-fast 
 SHLIB_CFLAGS=-lsunmath 
 CPICFLAGS=-xcode=pic32

Not sure which caused the problem with table(), but
R's defaults eliminate -fast, -xcode=pic32 and -lsunmath.

Thanks for the responses.

-S
-- 
Stephen Shiboski  -------------------  steve at biostat.ucsf.edu
Division of Biostatistics                 voice: 415-476-0533
University of California, San Francisco     fax: 415-476-6014
500 Parnassus Avenue, MU 420-W;  San Francisco, CA 94143-0560

On Thu, Oct 25, 2001 at 09:56:40PM +0100, Prof Brian D Ripley wrote:
> On Wed, 24 Oct 2001, Mark Myatt wrote:
> 
> > Steve Shiboski <steve at biostat.ucsf.edu> writes:
> > >Are the following differences in table() output
> > >between versions 1.3.0 and 1.3.1 a feature, a bug
> > >or a problem with my implementation?
> > >
> > >(I am running under Solaris 2.7 SPARC, built using the
> > >Sun C and FORTRAN compilers.)
> > >
> > >Version 1.3.1:
> > >
> > >> table(c(0,1),c(0,1))
> > >
> > >    1
> > >  1 1
> > >
> > >Version 1.3.0:
> > >
> > >> table(c(0,1),c(0,1))
> > >
> > >    0 1
> > >  0 1 0
> > >  1 0 1
> >
> > Odd. I don't get this behaviour on my Windows box. I think that,
> > perhaps, it is down to how the binary was compiled. Did you use the Sun
> > tools or the GNU tools?
> 
> I don't see it on Solaris 2.7 built with Sun's C and Fortran using either
> Sun or GNU tools.   So it seems definitely a priblem with one specific
> installation.
> 
> -- 
> 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