From edd at debian.org  Sun Jan  4 01:05:44 2015
From: edd at debian.org (Dirk Eddelbuettel)
Date: Sat, 3 Jan 2015 18:05:44 -0600
Subject: [Rd] Potential cross-platform package building issue
In-Reply-To: <CANDt99qftMTV9+-DEmi-9WUT1bQknzT+wCTxVFHBsWPU15OYCQ@mail.gmail.com>
References: <CANDt99qftMTV9+-DEmi-9WUT1bQknzT+wCTxVFHBsWPU15OYCQ@mail.gmail.com>
Message-ID: <21672.33752.811291.822728@max.nulle.part>


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


[Rd] Potential cross-platform package building issue
Dirk Eddelbuettel