
Clean up test files in the 'longtests' directory
Source:R/longtests_rcolet.R
roclet_clean.roclet_longtests.Rd
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.
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)