tests/testthat/test-shlib.R

context("shlib")

test_that("error reporting", {
  path <- tempfile(fileext = ".c")
  writeLines("not really c", path)
  expect_error(capture.output(shlib(path, "dde_")),
               "Error compiling source; see above for details")
})


test_that("don't rebuild dll", {
  expect_null(shlib("growth.c", "dde_"))
})

Try the dde package in your browser

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

dde documentation built on Sept. 23, 2024, 5:09 p.m.