Hi there,
The attrition dataset referred to throughout the text is no longer found in the rsample package. It can now be found in the modeldata package. See documentation here. Text loading the dataset should be updated to modeldata::attrition.
This dataset is first mentioned under Section 1.4 - The data sets.