How to install DPpackage in R on Mac?

98 Views Asked by At

I was trying to install DPpackage in R using install.packages("DPpackage"). However, it fails with

Warning in install.packages : package ‘DPpackage’ is not available for this version of R. Then I tried to check which version of R would work, but I was struggling understand the following output. enter image description here

I then tried

install.packages("https://cran.r-project.org/src/contrib/Archive/DPpackage/DPpackage_1.1-7.tar.gz", repos=NULL, type="source")

And I got the following error message:

make: /opt/R/arm64/bin/gfortran: No such file or directory make: *** [BDPdensity.o] Error 1 ERROR: compilation failed for package ‘DPpackage’. removing ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/DPpackage’

Could anyone help with installing the package?

0

There are 0 best solutions below