Welcome to StackOverflow, and as I alluded to in my comment, you first need to enable compilation from source on your Mac. The tutorial here is usually current, if not some macOS experts may provide other ones.
The repo itself is fine and installs very cleanly on my Linux machine the little wrapper to remotes::install_github()
that I use:
edd@rob:~$ installGithub.r shuangj00/IntegrativeBayes
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo shuangj00/IntegrativeBayes@HEAD
Skipping 1 packages ahead of CRAN: Rcpp
✔ checking for file ‘/tmp/remotes3c654e4cdc73ce/shuangj00-IntegrativeBayes-c76cfd4/DESCRIPTION’
─ preparing ‘IntegrativeBayes’:
✔ checking DESCRIPTION meta-information
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Omitted ‘LazyData’ from DESCRIPTION
─ building ‘IntegrativeBayes_1.0.tar.gz’
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
* installing *source* package ‘IntegrativeBayes’ ...
** using staged installation
** libs
ccache g++-11 -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fopenmp -fpic -g -O3 -Wall -pipe -pedantic -Wno-ignored-attributes -c RcppExports.cpp -o RcppExports.o
ccache g++-11 -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fopenmp -fpic -g -O3 -Wall -pipe -pedantic -Wno-ignored-attributes -c ZINBwCOV.cpp -o ZINBwCOV.o
ccache g++-11 -std=gnu++11 -Wl,-S -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o IntegrativeBayes.so RcppExports.o ZINBwCOV.o -fopenmp -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/00LOCK-IntegrativeBayes/00new/IntegrativeBayes/libs
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (IntegrativeBayes)
edd@rob:~$