'rep_len' is no long providing in the newest R version