R for remote environment