added setting up R