[R] Problems with Rcmd build --- windows

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Jul 29 08:53:01 CEST 2003


Please note (because you keep saying it): this is not Rcmd.

Rcmd runs Perl to run the Perl script build.

The perl script build --binary runs INSTALL to install your package.

INSTALL runs Rdconv, and it is Rdconv which is complaining.

So the problem is installing your package: did you try installing it from 
the sources?

On Tue, 29 Jul 2003, kjetil brinchmann halvorsen wrote:

> Hola!
> 
> I am using Rcmd build --binary ... on a windows XP system, and am 
> encountering a strange problem. Rcmd claims there are syntax errors 
> in one of mine .Rd files
> 
> ******* Syntax error: mismatched or missing brackets in
> 
> I take "brackets" to mean [], and I have none of them in the file, 
> and don't think they are needed. 

It means braces, { }.

> Rcmd prints out the offending file, 
> and in the printout I can find:
> 
>  \itemnormal-bracket1001bracket-normalVALUnormal-bracket1001bracket-
> normal{a factor, did you ever in life use alucinogenos,  with levels 
>                 \code{No} \code{Si}}             
> 
> Which is of course not what I have in my file, I have
> 
>  \item{VALU}{a factor, did you ever in life use alucinogenos,  with 
> levels 
>                 \code{No} \code{Si}}    
> 
> This strange expansion of the braces {} does not occur any other 
> place. I am running Rcmd from a shell window in Xemacs.

Yes it does!  It's a normal part of Rd conversion.

> Any explanation of this strange happening?

Yes, there are syntax errors in your .Rd file, or a bug in Rdconv (but 
unlikely as it has successfully processed many files -- is this one 
particularly large?).  Try removing bits of the .Rd file to narrow the 
problem down.


-- 
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-help mailing list