[Rd] Underscore character in Rd files
martin at ist.org
Thu Mar 3 13:58:17 CET 2005
I'm trying to document a data frame in Rd format. The data frame contains
a variable called
'Health_Env'. When I create a template for the Rd file using 'prompt()'
the variable name is
included as-is and when I run R CMD CHECK I get a latex error because
latex considers '_' a special character (used for subscripts) which is
only allowed in math mode.
When I replace the variable name with 'Health\_Env' in the Rd file latex
runs fine, but I get a codoc-mismatch warning because the backslash is not
part of the variable name in the data frame.
Is there a way to completely satisfy R CMD CHECK in this case and avoid
both errors and warnings??
system i386, mingw32
More information about the R-devel