Recent Releases of read.abares
read.abares - v1.0.0
read.abares 1.0.0
Major changes
Rename functions that both download and read files into active R session from
get_toread_to avoid confusion with functions that only fetch data and have separateread_functionsAdds new function,
print_agfd_nc_file_format()to provide details on the AGFD NetCDF files' contentsUses Geopackages for {sf} objects rather than .Rds, faster and smaller file sizes when caching
Checks and corrects the geometries of the AAGIS Regions shapefile upon import and applies to the cached object if applicable
Bug fixes
No longer checks the length of a Boolean vector when checking the number of files in the cache before proceeding with removing them
Fixes bugs in
get_agfd()when creating the directories for saving the downloaded fileFixes bug in
get_aagis_regions()when creating the cached object fileFixes "URL" field in DESCRIPTION file, thanks @mpadge
Minor changes
Improved documentation
- All data sets now have an
@sourcefield that points to the file being provided - All data sets now have an
@referencesfield that points to references for the data
- All data sets now have an
Code linting thanks to {flint}
Use {httr2} to handle downloads
- Increase timeout values to deal with stubborn long-running file downloads
- Uses {httr2}'s caching functionality to simplify in-session caching
Use {brio} to write downloads to disk
Use {httptest2} to help test downloads
Gracefully handle errors when AGFD zip files are corrupted on download, provide the user with an informative message and remove corrupted download
Tests are run in parallel for quicker testing
{sf} operations are now quiet when reading data where possible
- R
Published by adamhsparks over 1 year ago