Completed the multirepository support in R scripts