I got data from Chirps in tif.gz format, I tried R.utils::gunzip to get the maps but I got an error.
R.utils::gunzip
file<-"./chirps-v2.0.1981.01.01.tif.