tests/testthat/test-def_environments.R

test_that("def_environments works", {
  rmacrostrat_test_checks(fn = def_environments,
                          check_args = list(environ = "reef",
                                            environ_type = "carbonate",
                                            environ_class = "marine"),
                          fail_args = list(# wrong argument
                                           environ_group = "reef",
                                           # wrong type
                                           environ_group = 1),
                          warn_args = list(environ_type = "test"),
                          col_no = 6, check_null = TRUE)
})

Try the rmacrostrat package in your browser

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

rmacrostrat documentation built on Oct. 18, 2024, 5:10 p.m.