-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#346 added single docs page for all hoardr caching objects, mention t…
…hose in their associated fxn man files
- Loading branch information
Showing
17 changed files
with
164 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#' @title rnoaa caching | ||
#' @description Manage data caches | ||
#' @name rnoaa_caching | ||
#' @details To get the cache directory for a data source, see the method | ||
#' `x$cache_path_get()` | ||
#' | ||
#' `cache_delete` only accepts 1 file name, while | ||
#' `cache_delete_all` doesn't accept any names, but deletes all files. | ||
#' For deleting many specific files, use `cache_delete` in a [lapply()] | ||
#' type call | ||
#' | ||
#' Note that cached files will continue to be used until they are deleted. | ||
#' It's possible to run into problems when changes happen in your R | ||
#' setup. For example, at least one user reported changing versions | ||
#' of this package and running into problems because a cached data | ||
#' file from a previous version of rnoaa did not work with the newer | ||
#' version of rnoaa. You should occassionally delete all cached files. | ||
#' | ||
#' @seealso [rnoaa_options()] for managing whether you see messages | ||
#' about cached files when you request data | ||
#' | ||
#' @section Useful user functions: | ||
#' | ||
#' Assuming x is a `HoardClient` class object, e.g., `lcd_cache` | ||
#' | ||
#' - `x$cache_path_get()` get cache path | ||
#' - `x$cache_path_set()` set cache path | ||
#' - `x$list()` returns a character vector of full path file names | ||
#' - `x$files()` returns file objects with metadata | ||
#' - `x$details()` returns files with details | ||
#' - `x$delete()` delete specific files | ||
#' - `x$delete_all()` delete all files, returns nothing | ||
#' | ||
#' @section Caching objects for each data source: | ||
#' | ||
#' - `isd()`: `isd_cache` | ||
#' - `cpc_prcp()`: `cpc_cache` | ||
#' - `arc2()`: `arc2_cache` | ||
#' - `lcd()`: `lcd_cache` | ||
#' - `bsw()`: `bsw_cache` | ||
#' | ||
NULL | ||
|
||
#' @rdname rnoaa_caching | ||
#' @format NULL | ||
#' @usage NULL | ||
#' @export | ||
"isd_cache" | ||
|
||
#' @rdname rnoaa_caching | ||
#' @format NULL | ||
#' @usage NULL | ||
#' @export | ||
"cpc_cache" | ||
|
||
#' @rdname rnoaa_caching | ||
#' @format NULL | ||
#' @usage NULL | ||
#' @export | ||
"arc2_cache" | ||
|
||
#' @rdname rnoaa_caching | ||
#' @format NULL | ||
#' @usage NULL | ||
#' @export | ||
"lcd_cache" | ||
|
||
#' @rdname rnoaa_caching | ||
#' @format NULL | ||
#' @usage NULL | ||
#' @export | ||
"bsw_cache" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.