Make all tutorials multi-language by adding R code examples #11420
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR :Make all tutorials multi-language by adding R code examples
Description :
This PR addresses issue #11413 by adding R language examples alongside the existing Python examples in XGBoost tutorials. This makes the documentation more accessible to users who prefer working in R rather than Python.
Implementation
Added language tabs using the sphinx-panels extension
Created equivalent R code examples matching the functionality of existing Python examples
Ensured consistent code style between Python and R implementations
Tested all R code examples to verify functionality
The implementation follows the plan outlined in PLAN.md, providing a systematic approach to convert all tutorials to support multiple languages.
Example
Before this PR, tutorials only provided Python examples. After this PR, users can switch between Python and R examples using the tabbed interface.
Related Issues
Fixes #11413