Hi, and welcome!
Please 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 question, however, doesn't require one.
This is a common problem for MAC users, due to Apple's non-standard compiler: while install from source sometimes works, it often fails in just this way. Saint Simon Urbanek of the R Core Development Team
relieves us of the brain damage required to tweak the source to work on our platform to create binary files that just run. No such love for packages that aren't yet on CRAN
of course. It normally takes 7-10 days.
My rule of thumb is to take the option to compile from source the first time it's offered, and if that fails to turn it down the second time.