more fixes to R framework installation