This should do it.
subset(r, 2:nlayers(r)) - subset(r, 1:(nlayers(r)-1))
Conveniently the usual Ops just work for raster objects, so we can simply build the right pair of objects with highlevel tools.
Other approaches might be necessary depending on the data values and volumes.