[Rd] Bug in Rdconv(.pm) (PR#13575)

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Mar 5 19:53:16 CET 2009


The problem is that \pkg gets included (unescaped) in a Perl 
substitution, and in modern Perl \p has a meaning (Unicode property).

Needs to be escaped/quoted, or the code to work a different way (which 
is probably preferable).

On Thu, 5 Mar 2009, ligges at statistik.tu-dortmund.de wrote:

> For the record (and as privately discussed with Brian Ripley), happens
> with all recent versions of R including R-devel from today:
>
>
> Consider a simple a.Rd file containing the lines
>
> ==================
> \name{a}
> \title{a}
> \value{\code{a} \code{\link[a]{a}} \pkg{a}
>    \item{a}{a}
> }
> ==================
>
>
> with these lines, I get, e.g.:
>
>
>
> ==================
> R CMD Rdconv --type="txt" a.Rd
>
> a                  package:unknown                  R Documentation
>
> a
>
> Value:
>
>     'a' 'a' 'a'
> Can't find Unicode property definition "k" at
> d:/Rcompile/recent/R/share/perl/R/Rdconv.pm line 2173,
> <$rdfile> line 5.
> ==================
>
> Version:
>  platform = i386-pc-mingw32
>  arch = i386
>  os = mingw32
>  system = i386, mingw32
>  status = Under development (unstable)
>  major = 2
>  minor = 9.0
>  year = 2009
>  month = 03
>  day = 03
>  svn rev = 48046
>  language = R
>  version.string = R version 2.9.0 Under development (unstable)
> (2009-03-03 r48046)
>
> Windows Server 2008 x64 (build 6001) Service Pack 1
>
> Locale:
> LC_COLLATE=C;LC_CTYPE=German_Germany.1252;LC_MONETARY=C;LC_NUMERIC=C;LC_TIME=C
>
> Search Path:
>  .GlobalEnv, package:stats, package:graphics, package:grDevices,
> package:utils, package:datasets, package:methods, Autoloads, package:base
>
>
>
> Uwe Ligges
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list