tests/testthat/test_simple.r

test_that(
  "Pythagoras is correct", {
    calc <- pythagoras(1:10, 10:1)
    expect_equal(
      sum(calc),
      87.37186249587302)
  })

Try the ggfields package in your browser

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

ggfields documentation built on June 20, 2025, 1:09 a.m.