Merged R install scripts together.