title: How can I export the results into Latex format
body: <p>I am using table1 command, I want to get the following results:</p>
  
  <pre><code>library(formattable)
  library(table1)
  library(xtable)
  
  table1::table1(~Sepal.Length + Sepal.Width + Petal.Length | Species, data = iris,output="latex")
  </code></pre>
  
  <p>The results shown in viewer section, how can I get the latex code for the output?</p>
  
  <p>if not, is there is a way to convert between html and latex in R?</p>