tests/testthat/test_assess_dependencies.R

test_that("assess_dependencies returns the correct number of dependencies", {
  expect_s3_class(
    assess_source_good$dependencies,
    c("pkg_metric_dependencies", "pkg_metric", "data.frame"))

  expect_equal(
    nrow(assess_source_good$dependencies),
    0)
})

Try the riskmetric package in your browser

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

riskmetric documentation built on May 29, 2024, 7:13 a.m.