Skip to content

Commit

Permalink
Fixes #1261 throw an error if data is not utf-8 encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
pchelle committed Aug 14, 2024
1 parent 271f79f commit 5bfa12f
Show file tree
Hide file tree
Showing 3 changed files with 338 additions and 1 deletion.
1 change: 1 addition & 0 deletions R/utilities-observed-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ readObservedDataFile <- function(fileName,
header = TRUE,
encoding = "UTF-8") {
validateFileExists(fileName)
validateIsFileUTF8(fileName)
# Get function with the most appropriate reading defaults
readObservedData <- getReaderFunction(fileName)
observedData <- readObservedData(
Expand Down
Loading

0 comments on commit 5bfa12f

Please sign in to comment.