Clone detection for R