An R package for causal inference in time series