From ripley at stats.ox.ac.uk  Tue Jan 20 10:20:51 2004
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue Jan 20 10:19:13 2004
Subject: [Rd] Error: unknown identifier {|} in tabular format {|l|c|c|c|}
In-Reply-To: <003301c3df2e$fff2ae90$0a00a8c0@rodan>
Message-ID: <Pine.LNX.4.44.0401200914470.25526-100000@gannet.stats>

You appear to be writing latex, but I guess this is part of an Rd file.
Do read `Writing R Extensions' for the description of the actual 
Rd language (which does not have that format specifier}.

\hline is not part of the Rd language either, and you will need the 
two-argument form of \eqn{} for expressions like those.

Finally, it is not `build' that chokes, but `INSTALL' called by `build 
--binary'.  It is often much easier to see what is going on by calling 
INSTALL directly.

On Tue, 20 Jan 2004, Jeff D. Hamann wrote:

> I've got a package I would like to send out for testing and have noticed a
> "problem" with the \tabular portion of the help "compiler"
> 
> the code for inserting vertical lines, in the tabular environment, causes
> the build to choke, but not the check command.
> 
> 
> C:\>rcmd build --binary -docs=all nlsystemfit
> 
>    \tabular{|l|c|c|c|}{
>     \hline
>     Method \tab Instruments \tab Objective Function \tab Covariance of
>     \eqn{\theta}\cr\hline
>     ...blah, blah,blah...
>     3SLS \tab yes \tab \eqn{r'(S_{2SLS}^{-1} \bigotimes W)r} \tab
>     \eqn{(X(diag(S)^{-1}\bigotimes W)X)^{-1}}\hline
>   }
> 
>    ...yields...
> 
>   not zipping data
>   installing help
>  >>> Building/Updating help pages for package 'nlsystemfit'
>      Formats: text html latex example
> Error: unknown identifier {|} in tabular format {|l|c|c|c|}
> make[1]: *** [help-nlsystemfit] Error 2
> make: *** [pkg-nlsystemfit] Error 2
> *** Installation of nlsystemfit failed ***
> 
> but C:\>rcmd build --binary nlsystemfit doesn't choke, but doesn't produce
> all the documents either. When I run rcmd rd2dvi.sh <package> I get the
> results I expect. Does this have something to do with the html (since those
> docs don't get created without the --docs=all argument) or the chm
> generation process?
> 
> I'll remove the | from the formatting for now...
> 
> Thanks,
> Jeff.
> 
> ---
> Jeff D. Hamann
> Forest Informatics, Inc.
> PO Box 1421
> Corvallis, Oregon USA 97339-1421
> (office) 541-754-1428
> (cell) 541-740-5988
> jeff.hamann@forestinformatics.com
> www.forestinformatics.com
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 
> 

-- 
Brian D. Ripley,                  ripley@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


[Rd] Error: unknown identifier {|} in tabular format {|l|c|c|c|}
Prof Brian Ripley