From fafbe4328179cdcdc44957825014bdfae6cf1770 Mon Sep 17 00:00:00 2001 From: wlandau Date: Fri, 3 Jan 2025 10:42:48 -0500 Subject: [PATCH] mitigate file_diff_chr() overhead --- R/class_file.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/class_file.R b/R/class_file.R index 76447ffe..a1d70a4d 100644 --- a/R/class_file.R +++ b/R/class_file.R @@ -193,7 +193,7 @@ file_info <- function(files, trust_timestamps = NULL) { } file_time <- function(info) { - file_diff_chr(max(info$mtime_numeric %||% 0)) + file_diff_chr(max(.subset2(info, "mtime_numeric") %||% 0)) } file_time_now <- function() {