inst/tinytest/test_gsodstations.R

library(tinytest)
library(checkmate)
using("checkmate")


## STRUCTURE ====

# ## TODO: "Install package 'data.table' to perform checks of data tables"
# expect_data_table(
#   gsodstations
#   , ncols = 11L
# )


## CONTENT ====

### elevation ----

expect_numeric(
  gsodstations$`ELEV(M)`
  # https://www.universetoday.com/15027/lowest-point-on-earth/
  , lower = -420
  # https://geology.com/records/highest-mountain-in-the-world.shtml
  , upper = 8848.86
)
environmentalinformatics-marburg/GSODTools documentation built on Jan. 5, 2024, 12:19 a.m.