NEWS.md
Fix bug where tmp
and dtr
could not be returned with tmn
or tmx
raster stacks
Move rappdirs
to SUGGESTS to fix NOTEs on https://cran.rstudio.com/web/checks/check_results_getCRUCLdata.html
Use hoardr for managing cached files
Fixed a bug where the file cache was not in the proper subdirectory. The file cache has moved to the proper location in a R/getCRUCLdata
location rather than getCRUCLdata
. You may wish to move files externally to R in order to keep them in the cache where the package will find them
Use lapply
in place of purrr::map
, purrr is no longer imported
Fix bug where cache
was not specified in internal function, .set_cache()
, this caused either of the functions fetching data from CRU to fail
Fix bug where cache
directory could not be created on Windows OS machines
Fix bug where tmx was returned when either tmn or tmx was requested for data frame, tmn now returned when requested and tmx now returned when requested. Raster stacks were not affected by this bug
rappdirs::user_config_dir()
was incorrectly used in place of rappdirs::user_cache_dir()
create_CRU_stack()
and create_CRU_df()
now only work with locally available files. If you need to fetch and create a data frame or raster stack of the data, please use the new functions, get_CRU_stack()
and get_CRU_stack()
R >=3.2.0 now required
Data can be cached using either get_CRU_stack()
or get_CRU_df()
for later use
Improved documentation with examples on mapping and graphing and more detail regarding the data itself
Change the method in which files are downloaded to use httr::GET()
Ingest data using data.table::fread
to decrease the amount of time necessary to run the functions
Functions check to see if data file(s) have already been downloaded during current R session, if so data file(s) are not requested for download again
Months are returned as a factor object in the tidy data frame