Skip to content

Commit

Permalink
One more <3.6 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Nov 9, 2023
1 parent f0197ca commit 79f64a0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/settings.R
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,7 @@ get_encoding_from_dcf <- function(file) {
warning = function(e) NULL
)

if (!is.null(encodings)) {
# Produces a warning in R <= 3.5 if encoding is NULL
encodings <- encodings[!is.na(encodings)]
}
encodings <- encodings[!is.na(encodings)]
if (length(encodings) > 0L) {
return(encodings[1L])
}
Expand Down

0 comments on commit 79f64a0

Please sign in to comment.