I am using Rstudio under Win7. Is there a way a scribe automatically avoids a character? Below is a simpler example:
\documentclass[a4]{article} \title{Example} \author{Stat-R} \begin{document} \maketitle <<nothing,echo=FALSE>>= my_name <- 'hari' my_number <- 100 df1 <- data.frame(my_name,my_number) df1
I get the following output ...

But I want the following

I will need to change everything '_' to '_' in my tex file. Is there any way to do this directly in the sweave file. I would appreciate any suggestion on this ...
source share