The Digital Soil Mineralogy with R course, written using bookdown, contains written and video tutorials on a range of different topics that use data-driven approaches to analyse soil XRPD data. The course also includes a comprehensive chapter on the use of the powdR package for XRPD data manipulations and quantitative phases analysis.
Whilst the examples within the course documentation use soil XRPD data, the approaches described within are applicable to XRPD data from any discipline, and thus the code can easily be adapted for different purposes.