
Process blocks for 'longtests' roclet
Source:R/longtests_rcolet.R
roclet_output.roclet_longtests.Rd
This function processes a list of blocks for the 'longtests' roclet. It calls the 'internal_longtests_roclet_process' function with the specified blocks and additional arguments. The code in the tests is indented, a 'test_that' boilerplate is added to the tests, and a 'context' line is not added to the header.
Examples
# Set up a temporary directory
base_path <- tempdir()
longtests_path <- file.path(base_path, "longtests", "testthat")
unlink(longtests_path, recursive = TRUE, force = TRUE)
dir.create(longtests_path, recursive = TRUE, showWarnings = FALSE)
# Create dummy inputs
obj <- longtests_roclet()
results <- list(longtests = list())
# Run the roclet_output function
result <- roxygen2::roclet_output(obj, results, base_path)