I'm using the Sweave toolchain in R to generate tex files from Sweave files as part of an R package. I use the R command:
$(RSCRIPT) -e "tools::texi2dvi( 'file.tex', pdf = TRUE, clean = FALSE )"
(part of my a Makefile in inst/doc) to generate the pdf. Non-breaking-space character ~ seems to be appearing as a real tilde in the resulting pdf. How do I avoid this? (I running pdflatex on the .tex file seems to do the trick, but I gather that is more platform dependent than using the R tools to compile the package. (More on R/Sweave makefiles in this question)