tests/testthat/test_rmd.R

context("rmd test")

test_that("test juliacall in rmd", {
    skip_on_cran()
    skip_on_appveyor()

    tmp <- tempfile(fileext = ".md")
    rmarkdown::render(test_path("Rmd_test.Rmd"), output_file = tmp)
    expect_true(file.exists(tmp))
    r <- paste(readLines(tmp), collapse = "\n")
    r1 <- paste(readLines(test_path("Rmd_test.md")), collapse = "\n")
    ## expect_equal(r, r1)
})

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.