Hi, and welcome!
Please see the FAQ: What's a reproducible example (`reprex`) and how do I create one? Using a reprex, complete with representative data will attract quicker and more answers.
However, this question isn't a coding question, there's enough to go on. (Actually, more than enough, as I hope will come clear.)
The cascade of failure begins at the top with
> `/usr/lib/R/etc/Makeconf:143: recipe for target 'api.o' failed
> make: *** [api.o] Error 1
> ERROR: compilation failed for package ‘Rcpp’
To check this, I just re-installed Rcpp
on my Ubuntu 19.10 box without problem. This is a good time to compare notes: this could fail on a machine with insufficient RAM, and I have 32GB (not a brag, I'm further behind on the arm's race than I am ahead of anyone!)
What are you working with?