tests/testthat/test-df.type.R

testthat::test_path("files", "catch.csv")

test_that("the right type of dataframe is determined", {
  df = read.csv("./files/catch.csv")

  expected.type = "GFW Fishing Effort By Vessel"

  actual.type = df.type(df)

  expect_equal(actual.type, expected.type)
})

Try the fishRman package in your browser

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

fishRman documentation built on May 29, 2024, 2:12 a.m.