Skip to content

Commit

Permalink
Robustly use osVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Nov 1, 2024
1 parent 001bdfb commit 6626a0b
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 6626a0b

Please sign in to comment.