title: read multiples local html files in a folder in R
body: <p>I have several HTML files in a folder in my pc. I would like to read them in R, trying to keep the original format as much as posible. There is only text, by the way. I have tried two approaches, which failed misserably:</p>
  
  <pre><code>##first approach
   library (tm)
   cname &lt;- file.path("C:", "Users", "usuario", "Desktop", "DEADataset", "The Phillipines", "gazzetes.presihtml")
    docs &lt;- Corpus(DirSource(cname))
  ## second approach
   list_files_path&lt;- list.files(path = './gazzetes.presihtml')
   a&lt;- paste0(list_files_path, names) # vector names contain the names of the file with the .HTML extension
   rawHTML &lt;- readLines(a)
  </code></pre>
  
  <p>Any guess? all the best</p>