R example moving window script (focal convolution matrix) using the raster package

The creation of Help files would be important, but it is somehow not working properly yet.
Maybe I can try to put my hands on this issue soon.