tests/testthat/test_valid_udunits.R

test_that("udunits database can be read", {
  skip_if_not_installed("xml2")
  suppressMessages(expect_s3_class(valid_udunits(), "data.frame"))
  suppressMessages(expect_s3_class(valid_udunits_prefixes(), "data.frame"))
})

Try the units package in your browser

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

units documentation built on Sept. 14, 2023, 1:06 a.m.