withr::with_output_sink("test-ablation-cmdline.Rout", { skip_on_cran() test_that("--help", { expect_no_warning(ablation_cmdline("--help")) }) test_that("--log-file=sann.rda", { logfile <- system.file(package="irace", mustWork = TRUE, file.path("exdata","sann.rda")) outfile <- withr::local_tempfile(pattern = "log-ablation", fileext = ".Rdata") plotfile <- withr::local_tempfile(pattern = "ablation", fileext = ".pdf") expect_no_warning( ablation_cmdline(paste0("--log-file=", logfile, " -o ", outfile, " -p ", plotfile))) }) }) # withr::with_output_sink()