R implementation of ICEACE model