title: Best way to fix encoding UTF-8 in my function's package R
body: <p>I try to deal with encoding UTF-8 my R package. My R version is <strong>3.4.4</strong> on <strong>Windows</strong>. </p>
  
  <p>My package is composed of some functions with console printing and 
  graph who needed encoding UTF 8 (french).</p>
  
  <p>I try to add this line in my R Script (at the beginning of script containing  my function and in my function) but the printing is like this <em>"RÃƒÂ©partition de la diffÃƒÂ©rence"</em></p>
  
  <pre><code>Sys.setlocale("LC_CTYPE","french")
  options(encoding = "UTF-8")
  </code></pre>
  
  <p>In another script, after load my package, I also add this few line but I have the same encoding problem ...</p>
  
  <p>Any ideas ? </p>