tests/testthat/test_current_events.R

context("running current_events")

with_mock_api({
  test_that("Basic Search", {
    res <- current_events(0, "10-K")

    expect_is(res, "data.frame")
    expect_length(res, 6)

    expect_true(!any(!startsWith(res$type, "10-K")))
  })
})

Try the edgarWebR package in your browser

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

edgarWebR documentation built on April 24, 2021, 5:09 p.m.