Skip to content

Commit

Permalink
Fix Windows line breaks for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheiss committed Jun 3, 2024
1 parent 2978e25 commit c0fc149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/helper.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ extract_output <- function(raw_output) {
end_index <- grep("^Output created:", raw_output) - 1
actual_output <- paste0(raw_output[start_index:end_index], collapse = "\n")

# Switch Windows-style \r\n linebreaks to \n
# Remove Windows's \r linebreaks from the output
actual_output <- gsub("\r\n", "\n", actual_output)

actual_output
Expand Down

0 comments on commit c0fc149

Please sign in to comment.