tests/testthat/test-roundR.R

test_that("roundR() rounds flexible to a given precision", {
  expect_equal(roundR(1.234), '1.2')
  expect_equal(roundR(1.234,level = 4,.german = T), '1,234')
})

Try the wrappedtools package in your browser

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

wrappedtools documentation built on June 8, 2025, 10:58 a.m.