Unable to install any packages on R desktop

Have a look at Unable to install package for R markdown . If you scroll all the way to the bottom there are a couple of suggested solutions.

I think I would try @ Gabor's first

apt-get install build-essential
2 Likes