Detect the time at which deviation occurs in time series data
AnomalyDetection is an open-source R package to detect anomalies
  which is robust, from a statistical standpoint, in the presence of
  seasonality and an underlying trend.


A blogpost that introduces the package can be found here and more formal paper can be found here.