getCRANrepos function

A helper function to get or set CRAN repos