From 6626a0b9a9256ac1d4e7caf18b1ecede520e2eae Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Fri, 1 Nov 2024 00:07:18 -0700 Subject: [PATCH] Robustly use osVersion --- R/show.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/show.R b/R/show.R index 2c9b2c87e..93d905b98 100644 --- a/R/show.R +++ b/R/show.R @@ -5,7 +5,7 @@ win_basename <- function(x) { - if (grepl("Windows", utils::osVersion)) { + if (isTRUE(grepl("Windows", utils::osVersion))) { large <- nchar(x) > 256 if (any(large)) { for (i in 1:length(large)) {