ropensci / skynet

Generates networks from BTS DB1B/T-100 data
https://docs.ropensci.org/skynet
Other
11 stars 4 forks source link

download_t100 error #7

Closed shriyakaram closed 3 years ago

shriyakaram commented 3 years ago

Hi Filipe,

I'm trying to download some T100 segment data using the download_t100 function but I'm getting the error: No internet connection or data source broken (my code: t100_seg <- download_t100(2019, "seg"). I checked your source code in the download_t100.R file and it seems as the url: "https://www.transtats.bts.gov/DownLoad_Table.asp" is broken.

Wondering if this can be fixed or if you have an alternative solution/suggestions.

Thanks!

FilipeamTeixeira commented 3 years ago

@shriyakaram It seems that the BTS changed the way the links work. I'll work on that this week and keep you updated.

FilipeamTeixeira commented 3 years ago

@shriyakaram The issue should be fixed. Please note that skynet requires the RCurl package from now on. Also, install the version from devtools::install_github("FilipeamTeixeira/skynet"), as the CRAN version will take a bit longer to be updated.

Let me know if it worked.

shriyakaram commented 3 years ago

Hi Filipe, It's still giving me the same error with the "No internet connection or data source broken" (my code: t100_seg <- download_t100(2019, "seg"). I re-installed using devtools::install_github("FilipeamTeixeira/skynet") but I'm still getting the same error. any suggestions?

FilipeamTeixeira commented 3 years ago

Hi @shriyakaram,

Can you confirm that you have skynet v1.4.1 installed? Also, did you install the RCurl package? Finally, don't forget to restart RStudio and R after you installed everything. I tested it on my side, and it's working as it should.

shriyakaram commented 3 years ago

Yes, it's working now! I didn't restart RStudio. Thanks.