ATR FTIR analysis code based on R ProjectTemplate.