bug in Rdconvlib.pl converting to latex (PR#311)
Saikat DebRoy
saikat@stat.wisc.edu
04 Nov 1999 09:49:21 -0600
>>>>> "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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._