############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Resources/bin/R CMD build --keep-empty-dirs --no-resave-data mitoClone2 ### ############################################################################## ############################################################################## * checking for file ‘mitoClone2/DESCRIPTION’ ... OK * preparing ‘mitoClone2’: * checking DESCRIPTION meta-information ... OK * cleaning src * installing the package to build vignettes ----------------------------------- * 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 x86_64 -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 ‘/private/tmp/RtmpPHdJsW/Rinst4b8470ae6ac8/mitoClone2’ ----------------------------------- ERROR: package installation failed