tests/testthat/test-Log.R

#Testing using package testthat for detailed error messages
library(testthat)

#Suppress plotting for sanity
options(device = pdf(file = NULL));

test_that(
    'Disabled log file export', {
        disabled.output <- capture_messages(
            venn.diagram(
                list(A = 1:20, B = 11:30),
                filename = NULL,
                disable.logging = TRUE
                )
            )
        expect_gt(nchar(paste(disabled.output, collapse = "\n")), 0)
        }
    );

Try the VennDiagram package in your browser

Any scripts or data that you put into this service are public.

VennDiagram documentation built on Jan. 11, 2026, 9:08 a.m.