[R] repeated - R package - Compilation Error

rab45+@pitt.edu rab45+ at pitt.edu
Thu Aug 11 14:54:09 CEST 2005


>> On Wed, 10 Aug 2005 rab45+ at pitt.edu wrote:
>>
>>> Thompson's Manual to Accompany Agresti's book refers to a package named
>>> "repeated". It's not on CRAN from what I can see. I have seen rpm's for
>>> it. Where is the best place to download this package?
>>
>> See the FAQ, Q5.1.5.  As to the `best' place, it is hard to say as the
>> URI
>> keeps changing: currently it seems to be
>> http://popgen.unimaas.nl/~jlindsey/rcode.html.
>>
>> --
>> 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 272866 (PA)
>> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>>
>
> I downloaded from the site you suggested but I get an error when
> installing:
>
> drwxr-xr-x  5 root   root     4096 Apr 25  2003 repeated
> -rw-rw-r--  1 chippy chippy 176563 Aug 10 17:05 repeated.tgz
> [root at ophth-bilora R]# man R
> [root at ophth-bilora R]# R CMD INSTALL repeated
> * Installing *source* package 'repeated' ...
> ** libs
> gfortran   -fPIC  -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
> -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c chidden.f -o
> chidden.o
> gfortran   -fPIC  -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
> -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c cphidden.f -o
> cphidden.o
> gcc -I/usr/lib/R/include  -I/usr/local/include   -fPIC  -O2 -g -pipe
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
> -fasynchronous-unwind-tables -c cutil.c -o cutil.o
> gcc -I/usr/lib/R/include  -I/usr/local/include   -fPIC  -O2 -g -pipe
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
> -fasynchronous-unwind-tables -c dist.c -o dist.o
> gcc -I/usr/lib/R/include  -I/usr/local/include   -fPIC  -O2 -g -pipe
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
> -fasynchronous-unwind-tables -c gar.c -o gar.o
> gfortran   -fPIC  -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
> -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c hidden.f -o
> hidden.o
> gcc -I/usr/lib/R/include  -I/usr/local/include   -fPIC  -O2 -g -pipe
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
> -fasynchronous-unwind-tables -c kcountb.c -o kcountb.o
> gcc -I/usr/lib/R/include  -I/usr/local/include   -fPIC  -O2 -g -pipe
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4
> -fasynchronous-unwind-tables -c kserieb.c -o kserieb.o
> gfortran   -fPIC  -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
> -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c logitord.f -o
> logitord.o
> gfortran   -fPIC  -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32
> -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -c binnest.f -o
> binnest.o
>  In file binnest.f:638
>
>              Gradient(t1+t2+kk) = Gradient(t1+t2+kk) + (D1_Sig2(kk) / Li
>                                                                        1
> Error: Expected a right parenthesis in expression at (1)
> make: *** [binnest.o] Error 1
> ERROR: compilation failed for package 'repeated'
>
> I guess I can go in and fix this and try re-compiling.
>
> Rick B.
>
>

When I go into binnest.f, here is what I see:

C       Calculate First Derivative
	   Do kk = 1, t1
	      Gradient(kk) = Gradient(kk) + (D1_beta(kk) / Li)
	   End do
	   Do kk = 1, t2
	      Gradient(t1+kk) = Gradient(t1+kk) + (D1_Sig1(kk) / Li)
	   End do
	   Do kk = 1, t3
line 638 ->Gradient(t1+t2+kk) = Gradient(t1+t2+kk) + (D1_Sig2(kk) / Li)
	   End do

As you can see, line 638 looks just fine.

Why do I get a compilation error?

Rick B.




More information about the R-help mailing list