* installing *source* package ‘approxOT’ ...
** package ‘approxOT’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’
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 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c RcppExports.cpp -o RcppExports.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c cost.cpp -o cost.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c hilbert_cgal.cpp -o hilbert_cgal.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c hilbert_projection.cpp -o hilbert_projection.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c networkflow.cpp -o networkflow.o
networkflow.cpp:50:10: warning: unused variable 'resultdist' [-Wunused-variable]
  double resultdist = net.totalCost(); 
         ^
networkflow.cpp:57:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
  int count=0;
      ^
2 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c round_feasible.cpp -o round_feasible.o
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2  -c shortsimplex.c -o shortsimplex.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c sort.cpp -o sort.o
sort.cpp:240:7: warning: unused variable 'P' [-Wunused-variable]
  int P = v.rows();
      ^
sort.cpp:257:7: warning: unused variable 'P' [-Wunused-variable]
  int P = v.rows();
      ^
2 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c systematic_sample.cpp -o systematic_sample.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c trans_approxOT.cpp -o trans_approxOT.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c trans_greenkhorn.cpp -o trans_greenkhorn.o
trans_greenkhorn.cpp:93:7: warning: unused variable 'M' [-Wunused-variable]
  int M = mass_b.size();
      ^
trans_greenkhorn.cpp:92:7: warning: unused variable 'N' [-Wunused-variable]
  int N = mass_a.size();
      ^
2 warnings generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c trans_hilbert.cpp -o trans_hilbert.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c trans_rank.cpp -o trans_rank.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c trans_shortsimplex.cpp -o trans_shortsimplex.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c trans_sinkhorn.cpp -o trans_sinkhorn.o
trans_sinkhorn.cpp:283:7: warning: unused variable 'M' [-Wunused-variable]
  int M = mass_b.size();
      ^
1 warning generated.
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c trans_swap.cpp -o trans_swap.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c trans_univariate.cpp -o trans_univariate.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c trans_univariate_approx_pwr.cpp -o trans_univariate_approx_pwr.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c transport.cpp -o transport.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c utils.cpp -o utils.o
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/Rcpp/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppEigen/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/RcppCGAL/include' -I'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.4/BH/include' -I/opt/R/arm64/include   -I../inst/include -fPIC  -falign-functions=64 -Wall -g -O2   -c wasserstein.cpp -o wasserstein.o
clang++ -arch arm64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o approxOT.so RcppExports.o cost.o hilbert_cgal.o hilbert_projection.o networkflow.o round_feasible.o shortsimplex.o sort.o systematic_sample.o trans_approxOT.o trans_greenkhorn.o trans_hilbert.o trans_rank.o trans_shortsimplex.o trans_sinkhorn.o trans_swap.o trans_univariate.o trans_univariate_approx_pwr.o transport.o utils.o wasserstein.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
installing to /Volumes/Builds/packages/big-sur-arm64/results/4.4/approxOT.Rcheck/00LOCK-approxOT/00new/approxOT/libs
** generating debug symbols (dSYM)
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** 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 (approxOT)