tests/testthat/test_browse_edgar.R

context("running browse_edgar")

with_mock_api({
  test_that("running ", {
    expect_error(browse_edgar("BAD"),
                 "Could not find company: BAD")
    expect_s3_class(browse_edgar("EA"), "xml_node")
  })
})

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.