tests/testthat/test-class-methods.R

## Note these were tested with ADMB 12.2 on 8/3/2020
test_that("class methods working", {
  fit <- readRDS('fit.RDS')
  x <- as.data.frame(fit)
  expect_is(x, 'data.frame')
  summary(fit)
  print(fit)
  plot_marginals(fit)
})

Try the adnuts package in your browser

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

adnuts documentation built on March 3, 2021, 1:07 a.m.