Install R. Use an up to date resource like this: https://www.digitalocean.com/community/tutorials/how-to-install-r-on-ubuntu-18-04 ...