Я пытаюсь загрузить основы для перечисленных компаний из базы данных Edgar, и с этой целью я использую пакет Edgar в R.
Однако после успешной установки я не могу воспроизвести примеры в документации:
> output <- getFilings(cik.no = c(1000180, 38079), c('10-K','10-Q'),
+ 2006, quarter = c(1, 2, 3), downl.permit = "n")
Error in getFilings(cik.no = c(1000180, 38079), c("10-K", "10-Q"), 2006, :
unused arguments (quarter = c(1, 2, 3), downl.permit = "n")
> output <- getFilings(cik.no = c(1000180, 38079), c('10-K','10-Q'),2006)
Current directory does not contains 10-Kmaster.Rda file in 'Master Index' directory. Please download master index using 'getMasterIndex' function. Current directory does not contains 10-Qmaster.Rda file in 'Master Index' directory. Please download master index using 'getMasterIndex' function.
> getMasterIndex(2006)
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\PROGRA~2\Gow/etc/wgetrc
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\PROGRA~2\Gow/etc/wgetrc
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\PROGRA~2\Gow/etc/wgetrc
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\PROGRA~2\Gow/etc/wgetrc
Filename status
1 2006: quarter-1 Server Error
2 2006: quarter-2 Server Error
3 2006: quarter-3 Server Error
4 2006: quarter-4 Server Error
> output <- getFilings(cik.no = c(1000180, 38079), c('10-K','10-Q'),2006)
Current directory does not contains 10-Kmaster.Rda file in 'Master Index' directory. Please download master index using 'getMasterIndex' function. Current directory does not contains 10-Qmaster.Rda file in 'Master Index' directory. Please download master index using 'getMasterIndex' function.
> getMasterIndex(2018)
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\PROGRA~2\Gow/etc/wgetrc
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\PROGRA~2\Gow/etc/wgetrc
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\PROGRA~2\Gow/etc/wgetrc
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\PROGRA~2\Gow/etc/wgetrc
Filename status
1 2018: quarter-1 Server Error
2 2018: quarter-2 Server Error
3 2018: quarter-3 Server Error
4 2018: quarter-4 Server Error
Если у вас есть предложения относительно других пакетов в R и Python, которые помогут мне выполнить эту работу, предложите.Я попробовал пакет finreport, но там я тоже получаю исключение.
> library(finreportr)
> GetIncome('FB', 2015)
Error in mutate_impl(.data, dots) :
Evaluation error: `as_dictionary()` is defunct as of rlang 0.3.0.
Please use `as_data_pronoun()` instead.
Я пытался обновить dplyr:
> install.packages("tidyverse")
Installing package into ‘C:/Users/Alienware/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://mran.microsoft.com/snapshot/2017-09-01/bin/windows/contrib/3.4/tidyverse_1.1.1.zip'
Content type 'application/zip' length 42286 bytes (41 KB)
downloaded 41 KB
package ‘tidyverse’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Alienware\AppData\Local\Temp\Rtmpg7I8Ga\downloaded_packages
> install.packages("C:/Users/Alienware/Downloads/dplyr_0.8.3.zip", repos = NULL, type = "win.binary")
Installing package into ‘C:/Users/Alienware/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
package ‘dplyr’ successfully unpacked and MD5 sums checked
Warning in install.packages :
cannot remove prior installation of package ‘dplyr’
Это также не решило проблему.