Correlation between magnetic frustration and electrical conductivity inRInCu4compounds(R=Gd−Tm)