This document provides an overview of using XCMS, an open-source software package for metabolomics data preprocessing and analysis. It discusses: 1) Installing and loading the required XCMS packages in R. 2) Preparing raw metabolomics data, which can be in various open formats like netCDF. 3) Using XCMS functions to identify peaks, match peaks across samples, correct retention time drift, and fill in any missing peaks. 4) Generating reports to analyze and visualize results, identifying statistically significant differences in metabolite intensities between samples.