ropensci / tradestatistics

R package to access Open Trade Statistics API
https://docs.ropensci.org/tradestatistics
Apache License 2.0
76 stars 14 forks source link

tradestatistics::ots_create_tidy_data not working #60

Closed daoudaamad closed 2 years ago

daoudaamad commented 2 years ago

I am working with the tradestatistics package to download international trade data. But I still get the same message when running this command:

ots_create_tidy_data( years = 2019, reporters = "all", partners = "all", commodities = "all", table = "yr", max_attempts = 5, use_cache = FALSE, file = NULL, use_localhost = FALSE )

Error in parse_con(txt, bigint_as_char) : lexical error: invalid char in json text. year 2002 2020 (right here) ------^

I really don't understand the origin of the problem..

pachadotdev commented 2 years ago

hi @daoudaamad please reinstall the pkg with remotes::install_github("ropensci/tradestatistics") i had to re-deploy in recent weeks, and also the use_localhost argument is not in use anymore