tests/testthat/test_air.R

# vim:textwidth=80:expandtab:shiftwidth=4:softtabstop=4
library(oce)
test_that("air density at 0C and 100kPa", {
    # test value from <https://en.wikipedia.org/wiki/Density_of_air>
    expect_equal(1.2754, airRho(0, 1e5), tolerance=0.001)
})

Try the oce package in your browser

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

oce documentation built on May 29, 2024, 7:48 a.m.