determine versions also for r-base-core and r-recommended

- don't install r-recommends when version has been specified