repeated - R package - Compilation Error
On Thu, 11 Aug 2005 rab45+ at pitt.edu wrote:
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.
I used a text editor to remove two blanks from the front of line 638 and it compiled without errors. Now I have to find the "rmutil" package and install it to get repeated working.
Well spotted, almost certainly the closing bracket was not seen by the compiler because it ran into the comment field of the line (columns beyond 72), and failed with unmatched brackets. Some compilers allow arbitrarily long lines, but apparently not yours.
Rick B.
______________________________________________ R-help at 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
Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no