tests/testthat/test-s3_methods.r

test_that("s3_methods", {
  
  m <- mutex()
  
  expect_identical(format(m), m$name)
  expect_identical(as.character(m), m$name)
  expect_output(print(m))
  
  expect_true(m$remove())
})

Try the interprocess package in your browser

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

interprocess documentation built on June 8, 2025, 11 a.m.