Hi, and welcome!
For future posts that, unlike this one, that innvolve coding questions, pease see the FAQ: What's a reproducible example (`reprex`) and how do I do one? Using a reprex, complete with representative data will attract quicker and more answers.
This happens a lot in MAC OS, because Apple has a non-standard compiler environment. It's possible to edit the source code to get around that, but very few people are up to it.
Instead, wait for the latest and greatest version to be compiled into binary form by Saint Simon Urbanek, of the R Core Development Team, who takes the brain damage for us all. It's ok to answer "Yes" to "do you want to compile from source," become it sometimes works. But if at first you don't succeed, give up.