Mann-Kendall test for a raster dataset using R

Yep that should work though the section that lists your files is a little hard to decipher. You may need to add full.names=TRUE to list.files() in order to get the full file paths (instead of just the filenames).