tests/testthat/test-get_climate_txt.R

library(SticsRFiles)

stics_version <- get_stics_versions_compat()$latest_version
version_num <- get_version_num()

context("Counting rows of climate file")

workspace_path <- get_examples_path("txt", stics_version = stics_version)

meteo <- get_climate_txt(workspace_path)

test_that("Count rows climate file", {
  expect_equal(nrow(meteo), 366)
})

Try the SticsRFiles package in your browser

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

SticsRFiles documentation built on May 29, 2024, 4:18 a.m.