Skip to content

Commit

Permalink
Merge pull request #1638 from MichaelChirico/patch-2
Browse files Browse the repository at this point in the history
Robustly use osVersion
  • Loading branch information
rhijmans authored Nov 1, 2024
2 parents ac993dd + 6626a0b commit 038272b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/show.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 038272b

Please sign in to comment.