A simple tidal mechanics model written in R, can be used as an R tutorial and an exercise to learn about tides