Compiling error when running model in Ubuntu 18.04. Any ideas?

You should not have a ~/.R/Makevars.win file on Ubuntu. Delete that and follow