tests/testthat/test_error.R

context("Error handling test")

test_that("test of the error handling functionality", {
    skip_on_cran()
    julia <- julia_setup(installJulia = TRUE)

    expect_error(julia_eval("abc"))
    expect_error(julia_command("abc"))
    expect_error(julia_call("sqrt", -1))
    expect_error(julia_call("sqrt", 1, 2))
    expect_error(julia_library("A"))
})

Try the JuliaCall package in your browser

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

JuliaCall documentation built on Sept. 8, 2022, 5:10 p.m.