From saikat@stat.wisc.edu  Thu Nov  4 15:49:21 1999
From: saikat@stat.wisc.edu (Saikat DebRoy)
Date: 04 Nov 1999 09:49:21 -0600
Subject: bug in Rdconvlib.pl converting to latex (PR#311)
In-Reply-To: maechler@stat.math.ethz.ch's message of "Thu, 4 Nov 1999 09:20:51 +0100 (MET)"
References: <199911040820.JAA27177@pubhealth.ku.dk>
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


bug in Rdconvlib.pl converting to latex (PR#311)
Saikat DebRoy