Skip to contents

This function cleans up test files in the 'longtests' directory of a given base path. It first verifies if 'longtests' is used in the package by calling verify_longtests_used(). Then, it finds all test files in the 'longtests' directory that match the pattern "test-biocroxytest-.*\.R$". Finally, it calls internal_longtests_roclet_clean(testfiles) to remove the test files generated by biocroxytest.

Usage

# S3 method for class 'roclet_longtests'
roclet_clean(x, base_path)

Arguments

x

An object of class 'roclet_longtests'.

base_path

A character string representing the base path of the package.

Value

Invisible NULL.

Examples

# Set up a temporary directory
base_path <- tempdir()
longtests_path <- file.path(base_path, "longtests")
unlink(longtests_path, recursive = TRUE, force = TRUE)
dir.create(longtests_path, recursive = TRUE, showWarnings = FALSE)

# Create dummy inputs
obj <- longtests_roclet()

# Run the roclet_output function
result <- roxygen2::roclet_clean(obj, base_path)