Fixed "could not find function rep_len", this is due to rep_len is not c...

Fixed "could not find function rep_len", this is due to rep_len is not compatible with R 2.15