tests/testthat/test-im.print.R

test_that("multiplication works", {
  expect_equal(2 * 2, 4)
})
library(testthat)
library(imageRy)

test_that("im.print prints the expected message", {
  # Capture printed output
  output <- capture.output(im.print())

  # Expected message
  expect_true(any(grepl("I am imageRy", output)))
})

Try the imageRy package in your browser

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

imageRy documentation built on Aug. 8, 2025, 7:31 p.m.