tests/testthat/test-weather_variables.R

test_that("return non-empty variables sublists", {
  skip_on_cran()
  v <- weather_variables()
  expect_true(length(v$hourly_forecast_vars) > 1)
  expect_true(length(v$daily_forecast_vars) > 1)
  expect_true(length(v$hourly_history_vars) > 1)
  expect_true(length(v$daily_history_vars) > 1)
})

Try the openmeteo package in your browser

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

openmeteo documentation built on Oct. 25, 2023, 5:07 p.m.