 <p>How to save R objects to disk:</p> <p><a href="https://stat.ethz.ch/R-manual/R-devel/library/base/html/save.html" rel="nofollow">Save R Objects</a></p> <p>I took your example code and produced working, human readable, R-loadable output as follows:</p> <pre><code>str_url &lt;- "https://www.holidayhouses.co.nz/Browse/List.aspx?page=1" read_html_test1 &lt;- xml2::read_html(str_url) str_html &lt;- as.character(read_html_test1) x &lt;- xml2::read_html(str_html) save(x, file="c:\\temp\\text.txt",compress=FALSE,ascii=TRUE) </code></pre>