BOM seems to be blocking RStudio-specific useragents as I am able to read the relevant file(s) in a terminal session or when setting the useragent to something non-RStudio.
Some recent changes borked my zip-reading functionality and attempted to read a .zip with data.table::fread(), which won't work unless you mean to do something like data.table::fread(cmd = paste0('unzip -pq ', tmp)) but it doesn't appear to work with .zip files containing multiple files.
I've routed around the first by setting a custom useragent any time data is requested which includes the name and version of the package. This will better identify the package to anyone checking logs at BOM (presumably what has precipitated (:drum:) the restriction) and may result in further conversations.
I've fixed the second by reinstating .get_zip_and_load(). I don't know what other consequences this has, but it removes the calling of .get_url() so you may want to patch that back in.
Closes #130
It appears the issues are twofold:
data.table::fread()
, which won't work unless you mean to do something likedata.table::fread(cmd = paste0('unzip -pq ', tmp))
but it doesn't appear to work with .zip files containing multiple files.I've routed around the first by setting a custom useragent any time data is requested which includes the name and version of the package. This will better identify the package to anyone checking logs at BOM (presumably what has precipitated (:drum:) the restriction) and may result in further conversations.
I've fixed the second by reinstating
.get_zip_and_load()
. I don't know what other consequences this has, but it removes the calling of.get_url()
so you may want to patch that back in.Summary of tests:
The embedded nul is where
fread()
tries to read a .zip.