Made R location an environment variable.