sewardlee337/finreportr

errow with 2019 reports

Closed this issue · 0 comments

hello
when working in r with the following function, i get an error

> TSLA.inc <- GetIncome("TSLA", 2019)
Error in fileFromCache(file) : 
  Error in download.file(file, cached.file, quiet = !verbose) : 
  cannot open URL 'https://www.sec.gov/Archives/edgar/data/1318605/000156459019003165/https://xbrl.sec.gov/dei/2018/dei-2018-01-31.xsd'

when trying to retrieve the same data from a different year, it does work

> TSLA.inc <- GetIncome("TSLA", 2018)
> head(TSLA.inc)
                                           Metric        Units     Amount  startDate    endDate
1                         Sales Revenue Goods Net U_iso4217USD 3431587000 2015-01-01 2015-12-31
2                         Sales Revenue Goods Net U_iso4217USD 5589007000 2016-01-01 2016-12-31
3                         Sales Revenue Goods Net U_iso4217USD 8534752000 2017-01-01 2017-12-31
4 Operating Leases Income Statement Lease Revenue U_iso4217USD  309386000 2015-01-01 2015-12-31
5 Operating Leases Income Statement Lease Revenue U_iso4217USD  761759000 2016-01-01 2016-12-31
6 Operating Leases Income Statement Lease Revenue U_iso4217USD 1106548000 2017-01-01 2017-12-31