pedrocostaferreira / BETS

It provides access to and information about the most important Brazilian economic time series - from the Getulio Vargas Foundation <http://portal.fgv.br/en>, the Central Bank of Brazil <http://www.bcb.gov.br> and the Brazilian Institute of Geography and Statistics <http://www.ibge.gov.br>. It also presents tools for managing, analysing (e.g. generating dynamic reports with a complete analysis of a series) and exporting these time series.
https://cran.r-project.org/web/packages/BETS/index.html
30 stars 6 forks source link

BETS não funciona #27

Closed analisemacro closed 7 years ago

analisemacro commented 7 years ago

Oi, pessoal, tudo bem?

Fui usar o BETS hoje e veio o seguinte erro:

BETS.get(433) Error in $<-.data.frame(*tmp*, "data", value = character(0)) : replacement has 0 rows, data has 54

Está ocorrendo com qualquer série que eu tento pegar. Abaixo os dados da minha seção.

Obrigado desde já pelo help!

Abs

sessionInfo() R version 3.4.1 (2017-06-30) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale: [1] LC_COLLATE=Portuguese_Brazil.1252 LC_CTYPE=Portuguese_Brazil.1252
[3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C
[5] LC_TIME=Portuguese_Brazil.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] BETS_0.3.1

loaded via a namespace (and not attached): [1] tseries_0.10-40 httr_1.3.1 RMySQL_0.10.9
[4] tidyr_0.6.3 jsonlite_1.5 viridisLite_0.2.0 [7] gsubfn_0.6-6 shiny_1.0.5 assertthat_0.1
[10] seasonal_1.6.1 RSQLite_1.1-2 backports_1.1.0
[13] lattice_0.20-35 glue_1.1.1 quadprog_1.5-5
[16] chron_2.3-50 digest_0.6.12 rvest_0.3.2
[19] colorspace_1.3-2 htmltools_0.3.6 httpuv_1.3.5
[22] plyr_1.8.4 dygraphs_1.1.1.4 timeDate_3012.100 [25] pkgconfig_2.0.1 purrr_0.2.2.2 xtable_1.8-2
[28] scales_0.4.1 webshot_0.4.1 x13binary_1.1.39-1 [31] tibble_1.3.3 ggplot2_2.2.1 sqldf_0.4-11
[34] urca_1.3-0 nnet_7.3-12 lazyeval_0.2.0
[37] proto_1.0.0 magrittr_1.5 mime_0.5
[40] memoise_1.1.0 forecast_8.1 evaluate_0.10
[43] nlme_3.1-131 xml2_1.1.1 foreign_0.8-69
[46] tools_3.4.1 data.table_1.10.4 stringr_1.2.0
[49] plotly_4.7.1 munsell_0.4.3 bindrcpp_0.2
[52] compiler_3.4.1 rlang_0.1.1 grid_3.4.1
[55] RCurl_1.95-4.8 rstudioapi_0.6 rjson_0.2.15
[58] htmlwidgets_0.9 miniUI_0.1.1 bitops_1.0-6
[61] rmarkdown_1.6 gtable_0.2.0 fracdiff_1.4-2
[64] DBI_0.5 R6_2.2.1 grnn_0.1.0
[67] zoo_1.8-0 lubridate_1.6.0 knitr_1.15.1
[70] dplyr_0.7.2 bindr_0.1 rprojroot_1.2
[73] stringi_1.1.5 parallel_3.4.1 Rcpp_0.12.10
[76] lmtest_0.9-34

GreedBlink commented 7 years ago

Olá,

Estamos no processo de submissão da versão corrigida no CRAN. Esse problema foi apontado em um outro issue. Antes de abrir um novo, consulte os fechados, é possível que já tenha uma solução para o problema descrito. :D

Se não puder esperar pela versão nova no CRAN, basta usar a versão de desenvolvedor rodando o seguinte código:

install.packages("devtools")
require(devtools)
devtools::install_github("pedrocostaferreira/BETS")
library("BETS")
BETS.get(433)

Abraço!!!

talithafs commented 7 years ago

@analisemacro a nova versão acaba de ser aceita pelo CRAN. Problema resolvido : )