tests/testthat/test-finbif_last_mod.R

suppressMessages(insert_cassette("finbif_last_mod"))

test_that(
  "returns a valid date", {

    skip_on_cran()

    expect_s3_class(
      finbif_last_mod("Cygnus cygnus", filter = c(country = "Finland")),
      "Date"
    )

  }
)

suppressMessages(eject_cassette("finbif_last_mod"))

Try the finbif package in your browser

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

finbif documentation built on Sept. 28, 2023, 5:06 p.m.