refactor the selected R version code
refactor the selected R version code

 - Filter out any versions which don't exist on disk
 - DRY this out and use the same code for both install and update
 - always disable if no R is detected

R-ArcGIS/r-bridge-install,R-ArcGIS/r-bridge-install