I cannot install rnormalMIX. I received this:
> githubinstall("normalregMIx")
Suggestion:
- hkasahar/normalregMix normalregMix R-package
Do you want to install the package (Y/n)? Y
Downloading GitHub repo hkasahar/normalregMix@master
✓ checking for file ‘/private/var/folders/74/mmmqm7fd5wz5w2by2t01r8_80000gn/T/RtmpvGjrzm/remotes43df5ee08624/hkasahar-normalregMix-60ad78c/DESCRIPTION’ ...
─ preparing ‘normalregMix’:
✓ 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
─ building ‘normalregMix_1.0.0.tar.gz’
* installing *source* package ‘normalregMix’ ...
** using staged installation
** libs
clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include -fPIC -Wall -g -O2 -c cppNormalmixPMLE.cpp -o cppNormalmixPMLE.o
clang++ -mmacosx-version-min=10.13 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.0/Resources/library/RcppArmadillo/include' -I/usr/local/include -fPIC -Wall -g -O2 -c cppRegmixPMLE.cpp -o cppRegmixPMLE.o
clang++ -mmacosx-version-min=10.13 -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o normalregMix.so RcppExports.o cppNormalmixPMLE.o cppRegmixPMLE.o -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
ld: warning: dylib (/usr/local/gfortran/lib/libgfortran.dylib) was built for newer macOS version (11.4) than being linked (10.13)
ld: warning: dylib (/usr/local/gfortran/lib/libquadmath.dylib) was built for newer macOS version (11.4) than being linked (10.13)
installing to /Library/Frameworks/R.framework/Versions/4.0/Resources/library/00LOCK-normalregMix/00new/normalregMix/libs
** R
** byte-compile and prepare package for lazy loading
Note: possible error in 'cppNormalmixPMLE(b0, ': unused argument (k)
Note: possible error in 'cppNormalmixPMLE(b1, ': unused argument (k)
Note: possible error in 'cppNormalmixPMLE(b, y, ': unused argument (k)
Note: possible error in 'cppNormalmixPMLE(b, y, ': unused argument (k)
Note: possible error in 'cppNormalmixPMLE(b, y, ': unused argument (k)
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘normalregMix’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/00LOCK-normalregMix/00new/normalregMix/libs/normalregMix.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/00LOCK-normalregMix/00new/normalregMix/libs/normalregMix.so, 6): Symbol not found: __Z13cppRegmixPMLEN4Rcpp6MatrixILi14ENS_15PreserveStorageEEENS_6VectorILi14ES1_EES2_S2_S4_S4_iidiiddii
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/00LOCK-normalregMix/00new/normalregMix/libs/normalregMix.so
Expected in: flat namespace
in /Library/Frameworks/R.framework/Versions/4.0/Resources/library/00LOCK-normalregMix/00new/normalregMix/libs/normalregMix.so
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/normalregMix’
Warning message:
In i.p(...) :
installation of package ‘/var/folders/74/mmmqm7fd5wz5w2by2t01r8_80000gn/T//RtmpvGjrzm/file43df6686d625/normalregMix_1.0.0.tar.gz’ had non-zero exit status
Could you help me, please?