Skip to content

Possible Latex problem in R-devel?

7 messages · Brian Ripley, Jeff Gentry, Peter Dalgaard +1 more

#
I'm getting this error when installing packages w/ a checkout of R from a
a little bit ago (23-Aug-2004, approx 1pm eastern US time):

** help
Bareword found where operator expected at
/usr/home/jgentry/R/share/perl/R/Rdconv.pm line 2331, near "$latexout
latex_link_trans0"
        (Missing operator before latex_link_trans0?)

It isn't obvious to me what the error is, although commenting out line
2331 definitely causes the error to go away.

-J
#
On Mon, 23 Aug 2004, Jeff Gentry wrote:

            
What version of perl?

It works correctly in the current 5.8.4 (it has installed all the CRAN
packages), but I think I have seen something similar in 5.8.0.  Making
that

    print $latexout &latex_link_trans0($blocks{"name"});

will probably solve it for you.
#
Ack, didn't realize it was this ancient.  Version 5.005_03, which is what
comes with FreeBSD 4.9 apparently.  I did install the /usr/ports version
of perl is 5.8.2, although there seems to be other problems here (which
are most likely related to my system, will track that down before bringing
that issue up - it appears to be a mismatch on my libraries between the
two versions).
Yup, this works, thanks.
#
On Mon, 23 Aug 2004, Jeff Gentry wrote:

            
Yes, that version of perl has a lot of bugs, but in theory we support it.
(It seems worse than either 5.004 or 5.005_04.)
I've changed the sources, to be defensive.  I don't like reading Perl
like that, but it does work more portably.
#
Prof Brian Ripley <ripley@stats.ox.ac.uk> writes:
RedHat 8 is actually on 5.8.0 and is affected by this nit. Could we
fix it in the sources? Would be nice if it doesn't turn into yet
another must-upgrade-this-tool for developers.
#
Peter Dalgaard <p.dalgaard@biostat.ku.dk> writes:
Looks like Brian flew back in his time machine and responded to my
request an hour or two before I stated it...
#

        
BDR> On Mon, 23 Aug 2004, Jeff Gentry wrote:
>> > What version of perl?
    >> 
    >> Ack, didn't realize it was this ancient.  Version 5.005_03, which is what
    >> comes with FreeBSD 4.9 apparently.  I did install the /usr/ports version
    >> of perl is 5.8.2, although there seems to be other problems here (which
    >> are most likely related to my system, will track that down before bringing
    >> that issue up - it appears to be a mismatch on my libraries between the
    >> two versions).

    BDR> Yes, that version of perl has a lot of bugs, but in theory we support it.
    BDR> (It seems worse than either 5.004 or 5.005_04.)

    >> >     print $latexout &latex_link_trans0($blocks{"name"});
    >> > will probably solve it for you.
    >> 
    >> Yup, this works, thanks.

    BDR> I've changed the sources, to be defensive.  I don't like reading Perl
    BDR> like that, but it does work more portably.

I'm glad for the change.
Our redhat enterprise version of perl (5.8.0) also couldn't deal
with the other syntax.

Martin