tests/testthat/mod/path/to/module_r6.R

box::use(
  R6[R6Class],
)

#' @export
some_class <- R6Class("SomeClass",
  public = list(
    char_attribute = "char",
    method = function() {
      "method"
    }
  )
)

Try the box.linters package in your browser

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

box.linters documentation built on June 26, 2025, 5:07 p.m.