setting up terminal-based R