From ca007a993e2bdaf41b5875bd6ffedd46a9f79b46 Mon Sep 17 00:00:00 2001 From: mrcaseb Date: Fri, 29 Nov 2024 17:17:42 +0100 Subject: [PATCH 1/2] redact paths with option names containing "directory" --- DESCRIPTION | 2 +- R/utils_sitrep.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index b00a3a28..0fb7dbfe 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: nflreadr Title: Download 'nflverse' Data -Version: 1.4.1.05 +Version: 1.4.1.06 Authors@R: c( person("Tan", "Ho", , "tan@tanho.ca", role = c("aut", "cre", "cph"), comment = c(ORCID = "0000-0001-8388-5155")), diff --git a/R/utils_sitrep.R b/R/utils_sitrep.R index 29b97aa5..d94fa95c 100644 --- a/R/utils_sitrep.R +++ b/R/utils_sitrep.R @@ -145,7 +145,7 @@ ffverse_sitrep <- function(pkg = c("ffscrapr", "ffsimulator", "ffpros", "ffoppor pkg_search_string <- paste(packages, collapse = "|") package_options <- opts[grepl(pkg_search_string, x = names(opts))] if(redact_path) { - package_options[grepl("path|token|auth", names(package_options))] <- "{redacted, use redact_path = FALSE to show}" + package_options[grepl("path|token|auth|directory", names(package_options))] <- "{redacted, use redact_path = FALSE to show}" } return(package_options) } From a98c45230e18268ea68e6e5e36fe647d3cc3d026 Mon Sep 17 00:00:00 2001 From: mrcaseb Date: Fri, 29 Nov 2024 17:19:28 +0100 Subject: [PATCH 2/2] news bullet --- NEWS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/NEWS.md b/NEWS.md index d8aad1e2..40fe6016 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,6 +6,7 @@ across all nflverse data. When printing to the console, nflreadr will convert ti - Added a dictionary to describe what each shorthand roster status indicates (#232) - `clean_team_abbrs()` now converts `"PHO"` to `"ARI"`. (#260) - Improved description of next score probability variables in `nflreadr::dictionary_pbp`. (#262) +- `.sitrep` and all `*_sitrep` functions now redact nflfastR option paths. (#263) ---