tests/testthat/test_julia_package.R

context("julia_package test")

test_that("test of functionality related to julia_package", {
    skip_on_cran()
    julia <- julia_setup(installJulia = TRUE)

    expect_null(julia_install_package("RCall"))
    expect_null(julia_install_package_if_needed("RCall"))
    # expect_gte(utils::compareVersion(julia_installed_package("RCall"), "0.7.4"), 0)
    expect_null(julia_library("RCall"))

    ## test installation of packages from URL
    if (utils::compareVersion(julia$VERSION, "0.6.5") > 0) {
        expect_null(julia_install_package("https://github.com/JuliaIO/Suppressor.jl"))
    }
})

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.