[Rd] Underscore character in Rd files

From: Martin Keller-Ressel <martin_at_ist.org>
Date: Thu 03 Mar 2005 - 12:58:17 GMT


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??

I'm using

> version

platform i386-pc-mingw32

arch     i386
os       mingw32

system i386, mingw32
major 2
minor 0.0
year 2004
month 10
day 04
language R

best regards,

Martin Keller-Ressel


R-devel@stat.math.ethz.ch mailing list
Received on Fri Mar 04 00:03:04 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:01 GMT