tests/testthat/test-def_projects.R

test_that("def_projects works", {
  rmacrostrat_test_checks(fn = def_projects,
                          check_args = list(project_id = 4),
                          fail_args = list(# wrong argument
                                           project_group = 70,
                                           # wrong type
                                           project_id = "test"),
                          warn_args = list(project_id = -604),
                          col_no = 9, 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.