tests/testthat/test-plot_steepness.R

data(dommats, package = "EloRating")
w <- sample(1:3, 1)
m <- dommats[[w]]
if (any(rowSums(m) + colSums(m) == 0)) {
  suppressMessages(res <- davids_steepness(m, refresh = 0, chains = 2))
} else {
  res <- davids_steepness(m, refresh = 0, chains = 2)
}

test_that("supplying wrong object results in error", {
  expect_error(plot_steepness(res$stanfit))
})


plot_steepness(res, print_numbers = TRUE)
plot_steepness(res, print_numbers = FALSE)
plot_steepness(res, adjustpar = 0.7)

Try the EloSteepness package in your browser

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

EloSteepness documentation built on Sept. 21, 2023, 1:06 a.m.