View source: R/leff_calibration_io.R
| latest_rds | R Documentation |
Scans output_dir for files matching the given prefix
pattern and returns the path to the most recently modified one.
Date-stamped filenames (e.g., results_20260402.rds) sort
naturally, but this function uses filesystem modification time
for robustness.
latest_rds(prefix, output_dir = "_data", verbose = TRUE)
prefix |
Character. Filename prefix to match
(e.g., |
output_dir |
Character. Directory to scan.
Default: |
verbose |
Logical. Print the matched file. Default: TRUE. |
Full path to the most recent matching file, or NULL if no match is found.
## Not run:
path <- latest_rds("selection_survival_frontier")
res <- readRDS(path)
path <- latest_rds("calibration_binary_leff_grid")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.