Skip to content

Commit

Permalink
Don’t turn R warnings into errors
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr committed Jul 28, 2023
1 parent c085588 commit ed8a44c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion report/bc-vs-ast/scripts/data-processing2.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ load_rebench_data_file <- function(file) {
}

factorize_result <- function(result) {
options(warn = 2)
suppressWarnings({
result$bench <- factor(result$bench)
result$suite <- factor(result$suite)
Expand Down
2 changes: 1 addition & 1 deletion report/bc-vs-ast/scripts/libraries.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source("latex.R")
options(scipen=999)

# prints stack trace on error, from: http://stackoverflow.com/a/2000757/916546
options(warn = 2, keep.source = TRUE, error =
options(warn = 0, keep.source = TRUE, error =
quote({
cat("Environment:\n", file=stderr());

Expand Down

0 comments on commit ed8a44c

Please sign in to comment.