Resolves a user-specified path to the cache layer directory. In
"save" mode, the necessary directory structure is created
automatically. In "load" mode, an existing cache directory is
identified.
Arguments
- path
Character string. User-specified path.
- screen_method
Character string. Screening method name. Must match a key in
ScreenStrategy.- phenotype_class
Character string. Phenotype class. One of
"binary","survival", or"continuous".- mode
Character string. Either
"load"(default) or"save".- timestamp
Character string. Optional timestamp string for the new cache directory in save mode. Defaults to
format(Sys.time(), "%Y_%m_%d_%H%M").- ...
Additional arguments (must be empty).
See also
Other cache_config:
CheckCache(),
ChooseCache(),
LoadCache(),
WriteCache(),
WriteCacheMeta()
Examples
if (FALSE) { # \dontrun{
# Save: create a new cache under the root
CacheSetHere("Scissor_res", "Scissor", "survival", mode = "save")
# Load: select an existing cache from the root
CacheSetHere("Scissor_res", "Scissor", "survival", mode = "load")
# Load: point directly to a specific cache
CacheSetHere("Scissor_res/survival_202512011212", "Scissor", "survival", mode = "load")
} # }