inst/tests/test-.getDividendCalendar.R

#context(".getDividendCalendar")

# .getDividendCalendar doesn't work anymore because Reuters doesn't like you.

#test_that("file downloads correctly", {
#  dc <- .getDividendsCalendar()
#  expect_identical(colnames(dc), 
#        c("SYMBOL", "COMPANY", "AMOUNT", "EX-DATE", "PAYABLE", "RECORD", "DECLARATION"))
#  expect_identical(sapply(dc, class),
#                   structure(c("character", "character", "numeric", "Date", "Date", "Date", "Date"), 
#                            .Names = c("SYMBOL", "COMPANY", "AMOUNT", "EX-DATE", "PAYABLE", "RECORD", "DECLARATION")))
#
#})

Try the qmao package in your browser

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

qmao documentation built on May 2, 2019, 4:54 p.m.