tests/testthat/test-gen_obs.R

library(SticsRFiles)

xl_path <- download_usm_xl(file = "inputs_stics_example.xlsx")
obs_df <- read_params_table(file = xl_path, sheet_name = "Obs")
context("Create obs file ")

test_that("Obs file", {
  expect_true(gen_obs(df = obs_df, out_dir = get_examples_path("xl")))
  expect_warning(gen_obs(df = obs_df, out_dir = "xxx"))
})

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.