tests/testthat/test-waveflux.R

library(ggplot2)

geo <- geopotential[date == date[1]][,
  c("u", "v") := GeostrophicWind(gh, lon, lat)
]

test_that("waveflux returns w.x and w.y", {
  return <- with(geo, WaveFlux(gh, u, v, lon, lat, lev = 700))
  expect_known_output(return, "waveflux-return")
})

Try the metR package in your browser

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

metR documentation built on Oct. 8, 2026, 9:17 a.m.