title: Inputenc/Pandoc error when knit to Pdf on Rstudio Version 0.98.994
body: <p>I am getting an error to knit a Rmd document to pdf. Here is the part of the code causing the error.</p>
  
  <pre><code>```{r chunk5 ,echo=F}
  
  hypoconf&lt;-function(z){if(z=="dose"){
  
                   cat(paste(as.character(1),"\b. If there is no difference in 
                   tooth  growth  for" ,z,   "of",as.character(20),"and"     
                   as.character(10),"the probability of seeing the     
                   observed or more extreme outcome is", as.character(30),"percent."))  
  
                   cat("\n\n") 
              }
  hypoconf("dose")  
  ```  
  </code></pre>
  
  <p>This throws the following error when knitting to pdf.</p>
  
  <pre><code>output file: report2.knit.md
  
  pandoc: Error producing PDF from TeX source.
  ! Package inputenc Error: Keyboard character used is undefined
  (inputenc)                in inputencoding `utf8'.
  
  See the inputenc package documentation for explanation.
  Type  H &lt;return&gt;  for immediate help.
  ...                                              
  
  l.260 \end{verbatim}
  
  Try running pandoc with --latex-engine=xelatex.
  Error: pandoc document conversion failed with error 43
  Execution halted
  </code></pre>
  
  <p>I do not get the same error when I knit to html instead. Also, I have figured out the sources of error are the backspace <code>\b</code> and the newline <code>\n</code> characters in my code. But I cannot find a way to get around this.</p>