% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/use_check_factors.R
\name{use_check_factors}
\alias{use_check_factors}
\title{Adds the \code{CPPALLY_CHECK_FACTORS} flag to Makevars}
\usage{
use_check_factors()
}
\value{
Invisibly adds the \code{CPPALLY_CHECK_FACTORS} flag to Makevars.
}
\description{
Adds a flag to Makevars which enables stricter validation on factor levels
at the point of \code{r_factors} construction. This avoids creating \code{r_factors}
objects with invalid levels and avoiding potential R crashes.

The default behaviour is NOT to validate factor levels, which is naturally
faster when calling C++ functions that take \code{r_factors} inputs.
}
