tests/testthat/test_julia_source.R

context("julia_source test")

test_that("test julia_source", {
    skip_on_cran()

    fname <- test_path("simplesource.jl")

    julia_source(fname)

    expect_equal(julia_eval("a"), 1)
})

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.