Instruction: Demonstrate how to implement gradient boosting models in R using packages like xgboost or lightgbm.
Context: This question evaluates the candidate's expertise in leveraging gradient boosting frameworks in R for predictive modeling.
hard