-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No filings available for given year #1
Comments
Thank you for the catch. The example in the README is outdated because of GOOG's change in corporate structure in 2015 -- the SEC website no longer hosts GOOG's 2015 annual report. I have changed examples in README.md to 2016 accordingly (e.g. |
|
R version 3.3.2 (2016-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] finreportr_1.0.1 devtools_1.12.0.9000
loaded via a namespace (and not attached):
[1] Rcpp_0.12.7 XML_3.98-1.5 digest_0.6.10 dplyr_0.5.0.9000
[5] withr_1.0.2 assertthat_0.1 XBRL_0.99.17 R6_2.2.0
[9] DBI_0.5-1 magrittr_1.5 httr_1.2.1 stringi_1.1.2
[13] lazyeval_0.2.0 curl_2.2 xml2_1.0.0.9001 tools_3.3.2
[17] stringr_1.1.0 selectr_0.3-0 pkgload_0.0.0.9000 rvest_0.3.2
[21] memoise_1.0.0 tibble_1.2 |
Thanks! I will look into it and try to reproduce this error to figure out what is going on. |
I've tried it on Windows and Ubuntu, and it seems to work on my end.
R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] finreportr_1.0.1 devtools_1.12.0
loaded via a namespace (and not attached):
[1] magrittr_1.5 R6_2.2.0 assertthat_0.1 DBI_0.5-1 tools_3.2.3 withr_1.0.2 dplyr_0.5.0 tibble_1.2
[9] curl_2.2 Rcpp_0.12.7 memoise_1.0.0 digest_0.6.10 @jsta - Could you try deleting the |
Still getting an error. I tracked down the source of the error to the line in the |
Can you try running (This function from the |
Thats what I was saying in my earlier comment. I am having trouble with the |
Why is |
After I run R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.1 LTS
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] finreportr_1.0.1
loaded via a namespace (and not attached):
[1] Rcpp_0.12.7 XML_3.98-1.5 dplyr_0.5.0 assertthat_0.1 XBRL_0.99.17 R6_2.2.0 DBI_0.5-1 magrittr_1.5
[9] httr_1.2.1 stringi_1.1.2 curl_2.2 lazyeval_0.2.0 xml2_1.0.0 tools_3.2.3 stringr_1.1.0 selectr_0.3-0
[17] rvest_0.3.2 tibble_1.2 I am corresponding with the author of the |
The author of
If it works on some computers and R sessions, but not others, I suspect a settings or configuration problem. Will continue to investigate. |
@jsta - I am still trying to diagnose why the Can you type the following into your terminal, and show me the output?
I am hoping this will give me more information to diagnose the underlying issue. |
I think I solved the downloading issue using the fix here. Unfortunately, now I'm getting an error with Using
|
Ok, it turns out that the
|
@jsta - I've done some research on the Stack Overflow solution. It seems like the issue has to do with the method that I've never had a problem with the default setting > ### method = "wget"
> getOption("download.file.method")
[1] "wget"
>
> head(GetIncome("GOOG", 2016))
Metric Units Amount startDate endDate
1 Revenues usd 55519000000 2013-01-01 2013-12-31
2 Revenues usd 66001000000 2014-01-01 2014-12-31
3 Revenues usd 74989000000 2015-01-01 2015-12-31
4 Cost of Revenue usd 21993000000 2013-01-01 2013-12-31
5 Cost of Revenue usd 25691000000 2014-01-01 2014-12-31
6 Cost of Revenue usd 28164000000 2015-01-01 2015-12-31
>
> ### method = "internal"
> options(download.file.method = "internal")
> head(GetIncome("GOOG", 2016))
Metric Units Amount startDate endDate
1 Revenues usd 55519000000 2013-01-01 2013-12-31
2 Revenues usd 66001000000 2014-01-01 2014-12-31
3 Revenues usd 74989000000 2015-01-01 2015-12-31
4 Cost of Revenue usd 21993000000 2013-01-01 2013-12-31
5 Cost of Revenue usd 25691000000 2014-01-01 2014-12-31
6 Cost of Revenue usd 28164000000 2015-01-01 2015-12-31
>
> ### method = "auto"
> options(download.file.method = "auto")
> head(GetIncome("GOOG", 2016))
Metric Units Amount startDate endDate
1 Revenues usd 55519000000 2013-01-01 2013-12-31
2 Revenues usd 66001000000 2014-01-01 2014-12-31
3 Revenues usd 74989000000 2015-01-01 2015-12-31
4 Cost of Revenue usd 21993000000 2013-01-01 2013-12-31
5 Cost of Revenue usd 25691000000 2014-01-01 2014-12-31
6 Cost of Revenue usd 28164000000 2015-01-01 2015-12-31 Therefore, I currently suspect that what's causing problems on your end is some network restriction that specifically you are subjected to. If this is the case, how should we proceed? |
Hmm, without my
In my opinion the ideal would be to have more tests and see if travis has the same error. As far as the JOSS review, I understand that there is not much you can do about an error in a dependency. Now that I have it working with my |
I had the same issue on osx and debian, "fixing" XBRL's method from 'auto' to 'curl' solved this. |
Hello, Assuming I have first failed with xbrl.vars <- xbrlDoAll(inst,verbose = FALSE), have options(error=recover), and used R debugger to Then I get an errors for: download.file( "https://www.sec.gov/Archives/edgar/data/21344/000002134413000050/ko-20130927.xsd", "apu.tmp" ) BUT success for download.file( "https://www.sec.gov/Archives/edgar/data/21344/000002134413000050/ko-20130927.xsd", "apu.tmp", method="curl" ) After some Googlin, I found an issue discussed in http://r.789695.n4.nabble.com/dowload-file-method-quot-libcurl-quot-and-GET-vs-HEAD-requests-td4722037.html
with NO CAN DO resolution :(
Suggestion: XBLR package should not define method='auto' because 'download.file uses
and would allow user to override method at will. BR, |
My run of the example README.md code for
GetIncome
,GetBalanceSheet
, andGetCashFlow
does not produce the expected output. For example, running
GetIncome("GOOG", 2015)
produces:openjournals/joss-reviews#119
The text was updated successfully, but these errors were encountered: