[Rd] Potential cross-platform package building issue

Dirk Eddelbuettel edd at debian.org
Sun Jan 4 01:05:44 CET 2015


Steven,

Your error goes away when you write your \deqn{} in one line:

\deqn{\widehat{R_1} = \frac{\sum\limits_{i=1}^n{c_i/n}}{\sum\limits_{i=1}^n{L_i/n}}}


[...]

\deqn{\widehat{E} = T\sum\limits_{i=1}^n{\frac{1}{w_{i}}}\sum\limits_{j=1}^m{\frac{e_{ij}}{\pi_{j}}}}


The quoted text here still has the silly ^M at the end as I didn't bother
converting your files from your somewhat OS-specific encoding.  

The combination of splitting a \deqn{} over several lines seems to be the
issue. You may notice that the Writing R Manual example itself uses the latex
trick of a trailing '%' before a line-break.  The odd line end convention 
Windows seems more of a distration than an issue -- and if you work with a
suitable editor you won't have to worry about either way.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the R-devel mailing list