Fix syntax error, use sudo, do not apt-get r-base