tests/testthat/test_rmd_error.R

context("rmd error test")

test_that("test error throwing in rmd", {
    skip_on_cran()
    skip_on_appveyor()

    tmp <- tempfile(fileext = ".md")
    expect_error(rmarkdown::render(test_path("Rmd_error_test.Rmd"),
                                   output_file = tmp))
    expect_error(rmarkdown::render(test_path("Rmd_error_test1.Rmd"),
                                   output_file = tmp))
})

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.