Reading table from https webpage using readHTMLTable
<p>I have R 3.3.1 installed and am using RStudio 0.99.903.  I'm trying to read a table into R from the following URL:  <a href="https://www.fantasypros.com/nfl/rankings/consensus-cheatsheets.php" rel="nofollow noreferrer">https://www.fantasypros.com/nfl/rankings/consensus-cheatsheets.php</a></p>

<p>(I'm well aware that there is a download button, however, that is not an option for me right now)</p>

<p>I was able to do this easily last year with the readHTMLTable function.  However, in that time, that site changed from using http to https, which causes an "XML content does not eem to be XML" error.</p>

<p>I tried what was suggested here:  <a href="https://stackoverflow.com/questions/25947566/get-url-table-into-a-data-frame-r-xml-rcurl">get url table into a `data.frame` R-XML-RCurl</a></p>

<pre><code>library(XML)
library(RCurl)
url &lt;- getURL("https://www.fantasypros.com/nfl/rankings/consensus-cheatsheets.php")
df &lt;- readHTMLTable(URL, header = T)
</code></pre>

<p>The get URL function returns a large string that is essentially meaningless to me, which means readHTMLTable doesn't work correctly (I get a list, with a couple of data frames, but those are also meaningless to me.  It's in Spanish with observations of things that I have no idea where they came from):</p>

<pre><code>&gt;url
[1] "\r\n&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n\n&lt;head&gt;\n    &lt;title&gt;2016 QB Fantasy Football Rankings, QB Cheat Sheets, QB Draft / Draft Rankings&lt;/title&gt;\n    &lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"&gt;\n    &lt;meta name=\"description\" content=\"Don&amp;#8217;t trust any 1 fantasy football expert? We combine their rankings into 1 Expert Consensus Ranking. Our 2016 Draft QB rankings are updated daily.\"&gt;\n&lt;link rel=\"canonical\" href=\"https://www.fantasypros.com/nfl/rankings/qb-cheatsheets.php\" /&gt;\n\n    &lt;meta property=\"fb:pages\" content=\"184352014941166\"/&gt;\n
</code></pre>

<p>It goes on for quite a ways more.</p>

<p>Can someone give me suggestions on how to get this to work?</p>

<p>Thanks.</p>