% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_covr_skip_stf.R
\name{run_covr_safe_stf}
\alias{run_covr_safe_stf}
\title{Run skip coverage safely in a separate R session}
\usage{
run_covr_safe_stf(pkg, map_path, test_skip, test_map, timeout = 120)
}
\arguments{
\item{pkg}{Character. Name of the package being tested.}

\item{map_path}{Character. Path to the `testthat` directory containing mapped test structure.}

\item{test_skip}{Data frame. Skip map generated from problematic tests.}

\item{test_map}{Data frame. Mapped structure of test files and expectations.}

\item{timeout}{Numeric. Maximum time (in seconds) allowed for the coverage process to run. Default is 120 seconds.}
}
\value{
A coverage object returned by `coverage_skip()`, or `NULL` if an error occurs or timeout is reached.
}
\description{
This internal helper function uses `callr::r_safe()` to execute the
`coverage_skip()` function from the `risk.assessr` package in a clean R session.
This avoids issues with loaded namespaces (e.g., `dplyr`) that may interfere with coverage analysis.
}
\details{
It includes error handling and a configurable timeout to prevent long-running or stuck processes.
}
\keyword{internal}
