tests/testthat/test-options.r

context('default options')

test_that('default options are set', {
    expect_true(getOption('jupyter.rich_display'))
    expect_equal(getOption('jupyter.log_level'), 1L)
    expect_equal(getOption('jupyter.logfile'), NA)
    expect_equal(getOption('jupyter.pager_classes'), c(
        'packageIQR',
        'help_files_with_topic'))
    expect_equal(getOption('jupyter.plot_mimetypes'), c(
        'text/plain',
        'image/png'))
    # this is not a kernel itself, only the loaded package!
    expect_equal(getOption('jupyter.in_kernel'), FALSE)
})

Try the IRkernel package in your browser

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

IRkernel documentation built on Jan. 22, 2023, 1:13 a.m.