tests/testthat/test-deprecated.R

# library(testthat); library(downsize)
context("deprecated")

test_that("Deprecated functions warn correctly", {
  expect_warning(x <- ds(1:10, 2))
  expect_warning(scale_down())
  expect_warning(scale_up())
  expect_warning(scaling())
})

Try the downsize package in your browser

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

downsize documentation built on March 31, 2023, 10:41 p.m.