Re: bug in Rdconvlib.pl converting to latex (PR#311)

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: bug in Rdconvlib.pl converting to latex (PR#311)
From: Saikat DebRoy (saikat@stat.wisc.edu)
Date: Fri 05 Nov 1999 - 01:49:21 EST


Message-ID: <qxpr9i6ntoe.fsf@ludwig.stat.wisc.edu>

>>>>> "maechler" == maechler <maechler@stat.math.ethz.ch> writes:

>>>>> "Ray" == Ray Brownrigg <Ray.Brownrigg@mcs.vuw.ac.nz> writes:
Ray> If .../<pkg>/man/ contains a filename beginning with [, such as
Ray> [.datetimes, Rdconvlib.pl cannot convert that help file into
Ray> latex at INSTALL time. [Using --no-latex is a workaround.]

maechler> Well, the bug is more that of documentation of what is
maechler> allowed for *.Rd file names.

I do not think that the problem is with the file names here. It occurs
in line 1335 of Rdconvlib.pl (0.90.0 development version). You can get
around it by escaping the spacial characters in $blocks{"name"}.

The following patch does just that.

============================================================
--- Rdconvlib.pl Thu Nov 4 07:45:11 1999
+++ Rdconvlib.pl Thu Nov 4 09:57:43 1999
@@ -1332,7 +1332,7 @@
       print STDERR "rdoc2l: alias='$_', code2l(.)='$c', latex_c_a(.)='$a'\n"
        if $debug;
       printf latexout "\\alias\{%s\}\{%s\}\n", $a, $blocks{"name"}
- unless /^$blocks{"name"}$/;
+ unless /^\Q$blocks{"name"}$/;
     }
     foreach (@keywords) {
       printf latexout "\\keyword\{%s\}\{%s\}\n", $_, $blocks{"name"}
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:09 EST