Testthat: cannot open the connection to

Build HERE.

During the testthat test, I encounter a “cannot open the connection to” when trying to read data in from a url (a csv file).

Last 13 lines of output:
cannot open the connection to ‘https://www.vdh.virginia.gov/content/uploads/sites/182/2020/03/VDH-COVID-19-PublicUseDataset-Cases.csv
Backtrace:
1. VirginiaC19::refresh_VirginiaC19()
5. VirginiaC19:::read_data()
8. utils::read.csv(“https://www.vdh.virginia.gov/content/uploads/sites/182/2020/03/VDH-COVID-19-PublicUseDataset-Cases.csv”)
9. utils::read.table(…)
10. base::file(file, “rt”)

My env is R version 3.6.3 (2020-02-29) in OS X (x86_64-apple-darwin15.6.0). I’ve built packages like this before, that pull from url (CSV), and have no problem making it through Travis. I’ve switched the package to pull data around from readr and utils with no luck.

Local devtools test and checks work fine.

Thank you for any help you can provide.

@jeroen @jimhester

Imprint