Skip to content

Commit

Permalink
Attempting to fix weird test error
Browse files Browse the repository at this point in the history
  • Loading branch information
Schuemie authored and Schuemie committed Jan 21, 2022
1 parent a7f1657 commit 4919308
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ library(testthat)
test_that("Plot ROCs", {
set.seed(123)
data <- EmpiricalCalibration::simulateControls(n = 50 * 3, trueLogRr = log(c(1, 2, 4)))
fileName <- tempfile(fileext = ".png")
fileName <- tempfile(pattern = "roc", fileext = ".png")

plot <- plotRocsInjectedSignals(logRr = data$logRr, trueLogRr = data$trueLogRr, showAucs = TRUE,
fileName = fileName)
Expand All @@ -17,7 +17,7 @@ test_that("Plot ROCs", {
test_that("Plot coverage", {
set.seed(123)
data <- EmpiricalCalibration::simulateControls(n = 50 * 3, trueLogRr = log(c(1, 2, 4)))
fileName <- tempfile(fileext = ".png")
fileName <- tempfile(pattern = "cov", fileext = ".png")

plot <- plotCoverageInjectedSignals(logRr = data$logRr, seLogRr = data$seLogRr, trueLogRr = data$trueLogRr,
fileName = fileName)
Expand All @@ -31,7 +31,7 @@ test_that("Plot coverage", {
test_that("Plot controls", {
set.seed(123)
data <- EmpiricalCalibration::simulateControls(n = 50 * 3, trueLogRr = log(c(1, 2, 4)))
fileName <- tempfile(fileext = ".png")
fileName <- tempfile(pattern = "con", fileext = ".png")

plot <- plotControls(logRr = data$logRr, seLogRr = data$seLogRr, trueLogRr = data$trueLogRr,
fileName = fileName)
Expand Down

0 comments on commit 4919308

Please sign in to comment.