tests/testthat/test-build_tools.R

test_that("tests always run in environment with dev tools", {
  without_cache({
    expect_true(has_build_tools())
    expect_equal(has_rtools(), is_windows())
  })
})

test_that("unless specifically disabled", {
  without_compiler({
    expect_false(has_build_tools())
    expect_false(has_rtools())
  })
})

Try the pkgbuild package in your browser

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

pkgbuild documentation built on July 9, 2023, 7:24 p.m.