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.
Examples
if (FALSE) { # \dontrun{
path <- latest_rds("selection_survival_frontier")
res <- readRDS(path)
path <- latest_rds("calibration_binary_leff_grid")
} # }