Temperature Dependence of Electrical Resistivity in Intermetallic Compounds RNi (R=Sm, Gd, Dy, Ho, and Er)