* installing *source* package ‘Rnanoflann’ ... ** using staged installation ** libs using C++ compiler: ‘Debian clang version 18.1.5 (2)’ clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-18/include" -DNDEBUG -I../inst/include -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from ./../inst/include/Rnanoflann.h:3: In file included from ./../inst/include/internal/dists.hpp:4: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/RcppCommon.h:30: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/Rcpp/r/headers.h:26:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 26 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ 1 warning generated. clang++-18 -std=gnu++17 -I"/home/hornik/tmp/R-d-clang-18/include" -DNDEBUG -I../inst/include -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -DR_NO_REMAP -c knn.cpp -o knn.o In file included from knn.cpp:3: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include/RcppArmadillo.h:29: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:25: In file included from /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/RcppCommon.h:30: /home/hornik/lib/R/Library/4.5/x86_64-linux-gnu/Rcpp/include/Rcpp/r/headers.h:26:9: warning: 'R_NO_REMAP' macro redefined [-Wmacro-redefined] 26 | #define R_NO_REMAP | ^ :4:9: note: previous definition is here 4 | #define R_NO_REMAP 1 | ^ In file included from knn.cpp:4: In file included from ../inst/include/Rnanoflann.h:3: ../inst/include/internal/dists.hpp:156:35: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 156 | result += pow(abs(a[i] - data_source.kdtree_get_pt(b_idx, i)), data_source.getP()); | ^ ../inst/include/nanoflann.hpp:1750:54: note: in instantiation of member function 'Rnanoflann::minkowski::minkowski_adaptor, Rnanoflann::minkowski>>::evalMetric' requested here 1750 | DistanceType dist = distance_.evalMetric( | ^ ../inst/include/nanoflann.hpp:1607:9: note: in instantiation of function template specialization 'nanoflann::KDTreeSingleIndexAdaptor, Rnanoflann::minkowski>>, Rnanoflann::KDTreeArmadilloAdaptor3, Rnanoflann::minkowski>>::searchLevel>' requested here 1607 | searchLevel(result, vec, Base::root_node_, dist, dists, epsError); | ^ ../inst/include/nanoflann.hpp:1632:9: note: in instantiation of function template specialization 'nanoflann::KDTreeSingleIndexAdaptor, Rnanoflann::minkowski>>, Rnanoflann::KDTreeArmadilloAdaptor3, Rnanoflann::minkowski>>::findNeighbors>' requested here 1632 | findNeighbors(resultSet, query_point, searchParams); | ^ knn.cpp:31:35: note: in instantiation of member function 'nanoflann::KDTreeSingleIndexAdaptor, Rnanoflann::minkowski>>, Rnanoflann::KDTreeArmadilloAdaptor3, Rnanoflann::minkowski>>::knnSearch' requested here 31 | mat_index.index_->knnSearch(points.colptr(i), k, indices.colptr(i), distances.colptr(i)); | ^ knn.cpp:206:9: note: in instantiation of function template specialization 'nn_helper, Rnanoflann::minkowski>>' requested here 206 | nn_helper(mat_index, searchParams, points, k, search, radius, parallel, cores, indices, distances); | ^ ../inst/include/internal/dists.hpp:156:35: note: use function 'std::abs' instead 156 | result += pow(abs(a[i] - data_source.kdtree_get_pt(b_idx, i)), data_source.getP()); | ^~~ | std::abs 2 warnings generated. clang++-18 -std=gnu++17 -shared -L/home/hornik/tmp/R-d-clang-18/lib -Wl,-O1 -o Rnanoflann.so RcppExports.o knn.o -llapack -L/home/hornik/tmp/R-d-clang-18/lib -lRblas -L/usr/lib/llvm-18/lib -lFortran_main -lFortranRuntime -lFortranDecimal -lm -L/home/hornik/tmp/R-d-clang-18/lib -lR installing to /srv/hornik/tmp/CRAN/Rnanoflann.Rcheck/00LOCK-Rnanoflann/00new/Rnanoflann/libs ** 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 (Rnanoflann)