1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/misc.R 3\name{detect_step} 4\alias{detect_step} 5\title{Detect if a particular step or check is used in a recipe} 6\usage{ 7detect_step(recipe, name) 8} 9\arguments{ 10\item{recipe}{A recipe to check.} 11 12\item{name}{Character name of a step or check, omitted the prefix. That is, 13to check if \code{step_intercept} is present, use \code{name = intercept}.} 14} 15\value{ 16Logical indicating if recipes contains given step. 17} 18\description{ 19Detect if a particular step or check is used in a recipe 20} 21\examples{ 22rec <- recipe(Species ~ ., data = iris) \%>\% 23 step_intercept() 24 25detect_step(rec, "step_intercept") 26} 27