Uncertainty intervals with keras

Hi - I'm using an RNN to model a timeseries. Is there a way to calculate uncertainty intervals with keras?

I saw this Python suggestion to implement a dropout approach to measure uncertainty, and wondered if there is an R equivalent or alternative?

Thanks. Carl.