Re: [R] repeated - R package - Compilation Error

From: <rab45+_at_pitt.edu>
Date: Thu 11 Aug 2005 - 22:54:09 EST

>> On Wed, 10 Aug 2005 rab45+@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@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@ophth-bilora R]# man R
> [root@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.



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Aug 11 22:58:22 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:46 EST