From 391d065251c04c4580c6174e54ae7a38e6837624 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 20 May 2026 08:24:34 +0200 Subject: [PATCH 1/2] Update lazy_data assignment to handle 'true' and 'yes' Closes #1881 --- R/options.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/options.R b/R/options.R index d305dd4a..27a9a643 100644 --- a/R/options.R +++ b/R/options.R @@ -103,7 +103,7 @@ load_options_roxygen <- function(base_path = ".") { opts$current_package <- dcf[[1, 2]] opts$current_package_dir <- normalizePath(base_path) - opts$lazy_data <- identical(dcf[[1, 3]], "true") + opts$lazy_data <- tolower(dcf[[1, 3]]) %in% c("true", "yes") opts } From 0e30f43f92495a83c4b24f04921a6d0002d93d14 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 20 May 2026 16:29:48 +0200 Subject: [PATCH 2/2] Update NEWS.md with changes for development version Added a bullet point about automatic usage detection for the LazyData option as requested by @hadley. --- NEWS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS.md b/NEWS.md index 472a9d63..87704ca9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # roxygen2 (development version) +* The automatic usage for a data object that is conditional on the `LazyData` option in the `DESCRIPTION` (see below) now correctly detects all ways to specify a true value, e.g. also `yes`, `Yes` or `True` (@jranke, #1881). + # roxygen2 8.0.0 * roxygen2 now requires R 4.1 (#1632) and no longer depends on purrr, stringr, or stringi. As a result, no package in the devtools constellation depends on stringr, which means you no longer need stringi, making it a bit easier to install in constrained Linux environments.