I am working with Sweave and would like to print out into my latex document the 
result of the R command
version$platform
So what I first tried in my .Rnw document was \Sexpr{print(version$platform)}.

However, the output from this command is the string "x86_64-apple-darwin10.8.0" 
(without the quotes). This contains an underscore, which is a special character 
in tex and so I get an error message from latex.

I can get round this by using sub to replace underscore with a space, but I 
would like to know how to print the underscore if I really wanted to do so.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to