You are going to need to add -isystem /usr/include
to CXX14FLAGS in your ~/.R/Makevars file and then try again. Something else will inevitably be missing, so add its directory with another -isystem
thing. Repeat.
Or setup your R environment outside of Conda.