tests/testthat/test_no_roxygen.R

test_that("Package does not contain roxygen comments", {
  r_files <- list.files("R", pattern = "\\.R$", full.names = TRUE)

  has_roxygen <- vapply(
    r_files,
    function(f) any(grepl("^#'", readLines(f, warn = FALSE))),
    logical(1)
  )

  expect_false(
    any(has_roxygen),
    info = "Roxygen comments detected. Documentation should be maintained manually in man/."
  )
})

Try the fluxCore package in your browser

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

fluxCore documentation built on Sept. 22, 2026, 5:07 p.m.