wilsonfreitas / rbcb

R interface to Brazilian Central Bank web services
https://wilsonfreitas.github.io/rbcb/
Other
91 stars 20 forks source link

Error on Installation: Unable to Collate and Parse #47

Closed raphaelrrcoelho closed 2 years ago

raphaelrrcoelho commented 2 years ago

Hi there.

Has anyone experienced the error below while installing this through devtools::install_github?

* installing *source* package 'rbcb' ...
** using staged installation
** R
Error in parse(outFile) :
  C:/Users/raphael.coelho/AppData/Local/Temp/RtmpQJB2Lr/R.INSTALL3210597b5558/rbcb/R/rbcb_olinda_get_currencies.R:16:224: '>' inesperado
15: as.Date(end_date), "%m/%d/%Y")
16:   "https://olinda.bcb.gov.br/olinda/servico/PTAX/versao/v1/odata/CotacaoMoedaPeriodo(moeda=@moeda,dataInicial=@dataInicial,dataFinalCotacao=@dataFinalCotacao)?%%40moeda='%s'&%%40dataInicial='%

                      ^
ERROR: unable to collate and parse R files for package 'rbcb'
Reckziegel commented 2 years ago

I could successfully reinstall the package with devtools - devtools::install_github('wilsonfreitas/rbcb') - using the following configuration:

version
#>                _                           
#> platform       x86_64-w64-mingw32          
#> arch           x86_64                      
#> os             mingw32                     
#> system         x86_64, mingw32             
#> status                                     
#> major          4                           
#> minor          1.0                         
#> year           2021                        
#> month          05                          
#> day            18                          
#> svn rev        80317                       
#> language       R                           
#> version.string R version 4.1.0 (2021-05-18)
#> nickname       Camp Pontanezen
sessionInfo()
#> R version 4.1.0 (2021-05-18)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 19042)
#> 
#> 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     
#> 
#> loaded via a namespace (and not attached):
#>  [1] knitr_1.36        magrittr_2.0.1    R.cache_0.15.0    rlang_0.4.11     
#>  [5] fastmap_1.1.0     fansi_0.5.0       stringr_1.4.0     styler_1.6.2     
#>  [9] highr_0.9         tools_4.1.0       xfun_0.26         R.oo_1.24.0      
#> [13] utf8_1.2.2        withr_2.4.2       htmltools_0.5.2   ellipsis_0.3.2   
#> [17] yaml_2.2.1        digest_0.6.28     tibble_3.1.5      lifecycle_1.0.1  
#> [21] crayon_1.4.2      purrr_0.3.4       R.utils_2.11.0    vctrs_0.3.8      
#> [25] fs_1.5.0          glue_1.4.2        evaluate_0.14     rmarkdown_2.11   
#> [29] reprex_2.0.1      stringi_1.7.5     compiler_4.1.0    pillar_1.6.4     
#> [33] backports_1.2.1   R.methodsS3_1.8.1 pkgconfig_2.0.3

Created on 2021-11-03 by the reprex package (v2.0.1)

wilsonfreitas commented 2 years ago

Hi @raphaelrrcoelho my bad, I accidentally added new pipes into some new functions. Please, try the last commit 7ba65fe089b112a01ce686b338aac2c895dc3ac2, I have made some changes and I believe it should work.