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

ots_create_tidy_data not working #67

Closed sebar84 closed 1 year ago

sebar84 commented 1 year ago

Hello. I get the next message when running this command:

yr <- ots_create_tidy_data( years = 2019, table = "yr" )

Message:

Error in file(file, "rt") : cannot open the connection to 'https://api.tradestatistics.io/year_range' In addition: Warning message: In file(file, "rt") : cannot open URL 'https://api.tradestatistics.io/year_range': HTTP status was '502 Bad Gateway' Error in year_range$year : $ operator is invalid for atomic vectors Error in min(year_range):max(year_range) : NA/NaN argument In addition: Warning messages: 1: In years %in% min(year_range):max(year_range) : NAs introduced by coercion 2: In years %in% min(year_range):max(year_range) : NAs introduced by coercion

Thanks

pachadotdev commented 1 year ago

hi @sebar84 thanks! I rebooted the server and now it works