I am using 32-bit R 3.1.2 on Windows 7.
I recently conducted an R CMD check --as-cran
on a recently-developed package and received only the 'New submission' note. Research here and on R-devel suggested this could be ignored. I also used devtools::build_win()
and received no notes or warnings, other than the one mentioned previously. Further, I built the package locally with R CMD build
and R CMD INSTALL --build
and everything worked as it should, including the PDF manual.
Upon submission to CRAN, I was told that a warning was thrown:
This fails to make its manual:
* checking PDF version of manual ... WARNING
LaTeX errors when creating PDF version.
This typically indicates Rd problems.
LaTeX errors found:
! Missing $ inserted.
<inserted text>
$
l.682 }{}
! Missing } inserted.
<inserted text>
}
l.682 }{}
...
The line appears to be
\widehat{R_1} = \frac{\sum\limits_{i=1}^n{c_i/n}}{\sum\limits_{i=1}^n{L_i/n}}
Additional research here suggests that I use win-builder.r-project.org/ to check my package on the development version and results from that test threw only the "New submission" warning.
I'm at loss. I can't replicate the error that CRAN found an everything appears to work correctly on my machine and on win-builder.r-project.org, too.
Can someone please help me with resolving this issue? I freely admit that I am not a LaTeX expert but given that the line wasn't an issue with R 3.1.2 on windows or the development version on win-build, I don't know where to begin.
Package information is available here:
I used the inlinedocs
package to write my functions and comments. The warning is coming from the .R, line 127:
and the .Rd line 39:
Thanks for your help.
R CMD check --as-cran
on the [package name] directory rather than on the.tar.gz
which is likely the cause of my inability to reproduce the error. I'll work on the solution you provided. Thanks for your help. – Scriptural