title: XBRL / Finstr issue with SEC data in R
body: <p>I am trying to download the XBRL data from the SEC site, using the finstr package in R.</p>
  <p>The vignette references Apple financial statements from 2013-14. I am going after Abbott (CIK 1800) for mine. I've looked through the data records on the SEC site and the submission is in this folder:</p>
  <pre><code>https://www.sec.gov/Archives/edgar/data/1800/000110465920023904
  </code></pre>
  <p>The Apple xml file is named <code>aapl-20140927.xml</code> (the CIK followed by the submission date). I've gone into the file through a browser and identified the relevant data.</p>
  <p>The Abbott xml file that has the same info is named <code>abt-20191231x10k59d41b_htm.xml</code> , again with the relevant data.</p>
  <p>Following the vignette, I've added this code:</p>
  <pre><code>xbrl_url2020 &lt;- &quot;https://www.sec.gov/Archives/edgar/data/1800/000110465920023904/abt-20191231x10k59d41b_htm.xml&quot;
  xbrl_url2019 &lt;- 
    &quot;https://www.sec.gov/Archives/edgar/data/1800/000104746919000624/abt-20181231.xml&quot;
  old_o &lt;- options(stringsAsFactors = FALSE)
  xbrl_data_aapl2020 &lt;- xbrlDoAll(xbrl_url2020)
  </code></pre>
  <p>This then returns:</p>
  <pre><code>Error in fileFromCache(file) : 
  Error in download.file(file, cached.file, quiet = !verbose) : 
    cannot open URL 'https://www.sec.gov/Archives/edgar/data/1800/000110465920023904/https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd'
  
  In addition: Warning message:
  In download.file(file, cached.file, quiet = !verbose) :
    cannot open URL 'https://www.sec.gov/Archives/edgar/data/1800/000110465920023904/https://xbrl.sec.gov/dei/2019/dei-2019-01-31.xsd': HTTP status was '404 Not Found'
  </code></pre>
  <p>I've read through other submissions here and not sure whether it's a schema issue, whether I've gone after the wrong file (there's no other in the folder which has the info in totality) or whether it's something else.</p>
  <p>Also I've noticed a comment saying the datasets on the SEC site <code>https://www.sec.gov/dera/data/financial-statement-data-sets.html</code> have all the relevant info. The issue with the sets is that they are the submitted data and not the ratified so may be different to the final results published.</p>
  <p>Appreciate any help possible.</p>