############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL mitoClone2 ### ############################################################################## ############################################################################## * installing to library ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library’ * installing *source* package ‘mitoClone2’ ... ** using staged installation ** libs using C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’ using SDK: ‘MacOSX11.3.sdk’ clang++ -arch arm64 -std=gnu++17 -D_FILE_OFFSET_BITS=64 ../inst/SCITEpkg/*.cpp -o scite ../inst/SCITEpkg/findBestTrees.cpp:100:141: error: reference to 'sample' is ambiguous sampleOutput = runMCMCbeta(optimalTrees, errorRates, rep, loops, gamma, moveProbs, n, m, dataMatrix, scoreType, trueParentVec, sampleStep, sample, chi, priorSd, useTreeList, treeType); ^ ../inst/SCITEpkg/findBestTrees.cpp:61:6: note: candidate found by name lookup is 'sample' bool sample = false; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:3227:17: note: candidate found by name lookup is 'std::sample' _SampleIterator sample(_PopulationIterator __first, ^ ../inst/SCITEpkg/findBestTrees.cpp:289:5: error: reference to 'sample' is ambiguous sample = true; ^ ../inst/SCITEpkg/findBestTrees.cpp:61:6: note: candidate found by name lookup is 'sample' bool sample = false; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include/c++/v1/algorithm:3227:17: note: candidate found by name lookup is 'std::sample' _SampleIterator sample(_PopulationIterator __first, ^ 2 errors generated. ../inst/SCITEpkg/mcmcBinTreeMove.cpp:75:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 1 warning generated. make: *** [scite] Error 1 ERROR: compilation failed for package ‘mitoClone2’ * removing ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/mitoClone2’