cleanup_and_return_null: Clean up cov environment and return NULL

View source: R/run_covr_modes.R

cleanup_and_return_nullR Documentation

Clean up cov environment and return NULL

Description

This internal utility function is used to clean up the cov environment by removing all objects and optionally displaying a message before returning 'NULL'. It is primarily used within 'run_coverage_base()' to ensure consistent cleanup in error-handling scenarios.

Usage

cleanup_and_return_null(msg = NULL, env = cov_env)

Arguments

msg

Optional character string. If provided, the message will be printed before cleanup.

env

A character string specifying the covr env

Value

NULL (invisibly)


test.assessr documentation built on March 3, 2026, 1:06 a.m.