2023-10-16

# online
# remotes::install_github("r-spatialecology/landscapemetrics@basemetrics3")
# remotes::install_github("r-spatialecology/landscapemetrics@commoncalcs")
# or locally
devtools::install("~/Software/landscapemetrics3")
## vctrs (0.6.3  -> 0.6.4 ) [CRAN]
## terra (1.7-46 -> 1.7-55) [CRAN]
## Installing 2 packages: vctrs, terra
## Installing packages into '/home/jn/R/x86_64-redhat-linux-gnu-library/4.3'
## (as 'lib' is unspecified)
## ── R CMD build ─────────────────────────────────────────────────────────────────
##   
   checking for file ‘/home/jn/Software/landscapemetrics3/DESCRIPTION’ ...
  
✔  checking for file ‘/home/jn/Software/landscapemetrics3/DESCRIPTION’
## 
  
─  preparing ‘landscapemetrics3’: (568ms)
## 
  
   checking DESCRIPTION meta-information ...
  
✔  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 ‘landscapemetrics3_2.0.0.tar.gz’
## 
  
   
## 
Running /usr/lib64/R/bin/R CMD INSTALL \
##   /tmp/RtmpqQRaHh/landscapemetrics3_2.0.0.tar.gz --install-tests 
## * installing to library ‘/home/jn/R/x86_64-redhat-linux-gnu-library/4.3’
## * installing *source* package ‘landscapemetrics3’ ...
## ** using staged installation
## ** libs
## using C++ compiler: ‘g++ (GCC) 13.2.1 20230728 (Red Hat 13.2.1-1)’
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c RcppExports.cpp -o RcppExports.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_cclabel.cpp -o rcpp_cclabel.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_create_neighborhood.cpp -o rcpp_create_neighborhood.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_boundaries.cpp -o rcpp_get_boundaries.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_circle.cpp -o rcpp_get_circle.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_class_index_map.cpp -o rcpp_get_class_index_map.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_composition_vector.cpp -o rcpp_get_composition_vector.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_coocurrence_matrix.cpp -o rcpp_get_coocurrence_matrix.o
## rcpp_get_coocurrence_matrix.cpp: In function ‘Rcpp::IntegerMatrix rcpp_get_coocurrence_matrix(Rcpp::IntegerMatrix, arma::imat)’:
## rcpp_get_coocurrence_matrix.cpp:43:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
##    43 |                         neig_col < ncols &&
##       |                         ~~~~~~~~~^~~~~~~
## rcpp_get_coocurrence_matrix.cpp:44:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
##    44 |                         neig_row < nrows) {
##       |                         ~~~~~~~~~^~~~~~~
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_coocurrence_matrix_diag.cpp -o rcpp_get_coocurrence_matrix_diag.o
## rcpp_get_coocurrence_matrix_diag.cpp: In function ‘Rcpp::IntegerVector rcpp_get_coocurrence_matrix_diag(Rcpp::IntegerMatrix, arma::imat)’:
## rcpp_get_coocurrence_matrix_diag.cpp:43:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
##    43 |                         neig_col < ncols &&
##       |                         ~~~~~~~~~^~~~~~~
## rcpp_get_coocurrence_matrix_diag.cpp:44:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
##    44 |                         neig_row < nrows) {
##       |                         ~~~~~~~~~^~~~~~~
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_coocurrence_matrix_single.cpp -o rcpp_get_coocurrence_matrix_single.o
## rcpp_get_coocurrence_matrix_single.cpp: In function ‘Rcpp::IntegerMatrix rcpp_get_coocurrence_matrix_single(Rcpp::IntegerMatrix, arma::imat, int)’:
## rcpp_get_coocurrence_matrix_single.cpp:48:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
##    48 |                         neig_col < ncols &&
##       |                         ~~~~~~~~~^~~~~~~
## rcpp_get_coocurrence_matrix_single.cpp:49:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
##    49 |                         neig_row < nrows) {
##       |                         ~~~~~~~~~^~~~~~~
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_coocurrence_vector.cpp -o rcpp_get_coocurrence_vector.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_entropy.cpp -o rcpp_get_entropy.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_nearest_neighbor.cpp -o rcpp_get_nearest_neighbor.o
## rcpp_get_nearest_neighbor.cpp: In function ‘find_min(Rcpp::Matrix<14, Rcpp::PreserveStorage> const&, int, int)’:
## rcpp_get_nearest_neighbor.cpp:59:17: warning: ‘id0’ may be used uninitialized [-Wmaybe-uninitialized]
##    59 |     dist_vec(1) = id0;
##       |     ~~~~~~~~~~~~^~~~~
## rcpp_get_nearest_neighbor.cpp:19:12: note: ‘id0’ was declared here
##    19 |     int k, id0;
##       |            ^~~
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_unique_values.cpp -o rcpp_get_unique_values.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_smallest_circle.cpp -o rcpp_smallest_circle.o
## g++ -std=gnu++17 -shared -L/usr/lib64/R/lib -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -o landscapemetrics3.so RcppExports.o rcpp_cclabel.o rcpp_create_neighborhood.o rcpp_get_boundaries.o rcpp_get_circle.o rcpp_get_class_index_map.o rcpp_get_composition_vector.o rcpp_get_coocurrence_matrix.o rcpp_get_coocurrence_matrix_diag.o rcpp_get_coocurrence_matrix_single.o rcpp_get_coocurrence_vector.o rcpp_get_entropy.o rcpp_get_nearest_neighbor.o rcpp_get_unique_values.o rcpp_smallest_circle.o -L/usr/lib64/R/lib -lR
## installing to /home/jn/R/x86_64-redhat-linux-gnu-library/4.3/00LOCK-landscapemetrics3/00new/landscapemetrics3/libs
## ** R
## ** data
## *** moving datasets to lazyload DB
## ** inst
## ** tests
## ** byte-compile and prepare package for lazy loading
## ** help
## *** installing help indices
##   converting help for package ‘landscapemetrics3’
##     finding HTML links ... done
##     augusta_nlcd                            html  
##     calculate_correlation                   html  
##     calculate_lsm                           html  
##     check_landscape                         html  
##     construct_buffer                        html  
##     data_info                               html  
##     extract_lsm                             html  
##     get_adjacencies                         html  
##     get_boundaries                          html  
##     get_centroids                           html  
##     get_circumscribingcircle                html  
##     get_nearestneighbour                    html  
##     get_patches                             html  
##     get_unique_values                       html  
##     landscape                               html  
##     landscape_as_list                       html  
##     landscapemetrics3                       html  
##     list_lsm                                html  
##     lsm_abbreviations_names                 html  
##     lsm_c_ai                                html  
##     lsm_c_area_cv                           html  
##     lsm_c_area_mn                           html  
##     lsm_c_area_sd                           html  
##     lsm_c_ca                                html  
##     lsm_c_cai_cv                            html  
##     lsm_c_cai_mn                            html  
##     lsm_c_cai_sd                            html  
##     lsm_c_circle_cv                         html  
##     lsm_c_circle_mn                         html  
##     lsm_c_circle_sd                         html  
##     lsm_c_clumpy                            html  
##     lsm_c_cohesion                          html  
##     lsm_c_contig_cv                         html  
##     lsm_c_contig_mn                         html  
##     lsm_c_contig_sd                         html  
##     lsm_c_core_cv                           html  
##     lsm_c_core_mn                           html  
##     lsm_c_core_sd                           html  
##     lsm_c_cpland                            html  
##     lsm_c_dcad                              html  
##     lsm_c_dcore_cv                          html  
##     lsm_c_dcore_mn                          html  
##     lsm_c_dcore_sd                          html  
##     lsm_c_division                          html  
##     lsm_c_ed                                html  
##     lsm_c_enn_cv                            html  
##     lsm_c_enn_mn                            html  
##     lsm_c_enn_sd                            html  
##     lsm_c_frac_cv                           html  
##     lsm_c_frac_mn                           html  
##     lsm_c_frac_sd                           html  
##     lsm_c_gyrate_cv                         html  
##     lsm_c_gyrate_mn                         html  
##     lsm_c_gyrate_sd                         html  
##     lsm_c_iji                               html  
##     lsm_c_lpi                               html  
##     lsm_c_lsi                               html  
##     lsm_c_mesh                              html  
##     lsm_c_ndca                              html  
##     lsm_c_nlsi                              html  
##     lsm_c_np                                html  
##     lsm_c_pafrac                            html  
##     lsm_c_para_cv                           html  
##     lsm_c_para_mn                           html  
##     lsm_c_para_sd                           html  
##     lsm_c_pd                                html  
##     lsm_c_pladj                             html  
##     lsm_c_pland                             html  
##     lsm_c_shape_cv                          html  
##     lsm_c_shape_mn                          html  
##     lsm_c_shape_sd                          html  
##     lsm_c_split                             html  
##     lsm_c_tca                               html  
##     lsm_c_te                                html  
##     lsm_l_ai                                html  
##     lsm_l_area_cv                           html  
##     lsm_l_area_mn                           html  
##     lsm_l_area_sd                           html  
##     lsm_l_cai_cv                            html  
##     lsm_l_cai_mn                            html  
##     lsm_l_cai_sd                            html  
##     lsm_l_circle_cv                         html  
##     lsm_l_circle_mn                         html  
##     lsm_l_circle_sd                         html  
##     lsm_l_cohesion                          html  
##     lsm_l_condent                           html  
##     lsm_l_contag                            html  
##     lsm_l_contig_cv                         html  
##     lsm_l_contig_mn                         html  
##     lsm_l_contig_sd                         html  
##     lsm_l_core_cv                           html  
##     lsm_l_core_mn                           html  
##     lsm_l_core_sd                           html  
##     lsm_l_dcad                              html  
##     lsm_l_dcore_cv                          html  
##     lsm_l_dcore_mn                          html  
##     lsm_l_dcore_sd                          html  
##     lsm_l_division                          html  
##     lsm_l_ed                                html  
##     lsm_l_enn_cv                            html  
##     lsm_l_enn_mn                            html  
##     lsm_l_enn_sd                            html  
##     lsm_l_ent                               html  
##     lsm_l_frac_cv                           html  
##     lsm_l_frac_mn                           html  
##     lsm_l_frac_sd                           html  
##     lsm_l_gyrate_cv                         html  
##     lsm_l_gyrate_mn                         html  
##     lsm_l_gyrate_sd                         html  
##     lsm_l_iji                               html  
##     lsm_l_joinent                           html  
##     lsm_l_lpi                               html  
##     lsm_l_lsi                               html  
##     lsm_l_mesh                              html  
##     lsm_l_msidi                             html  
##     lsm_l_msiei                             html  
##     lsm_l_mutinf                            html  
##     lsm_l_ndca                              html  
##     lsm_l_np                                html  
##     lsm_l_pafrac                            html  
##     lsm_l_para_cv                           html  
##     lsm_l_para_mn                           html  
##     lsm_l_para_sd                           html  
##     lsm_l_pd                                html  
##     lsm_l_pladj                             html  
##     lsm_l_pr                                html  
##     lsm_l_prd                               html  
##     lsm_l_relmutinf                         html  
##     lsm_l_rpr                               html  
##     lsm_l_shape_cv                          html  
##     lsm_l_shape_mn                          html  
##     lsm_l_shape_sd                          html  
##     lsm_l_shdi                              html  
##     lsm_l_shei                              html  
##     lsm_l_sidi                              html  
##     lsm_l_siei                              html  
##     lsm_l_split                             html  
##     lsm_l_ta                                html  
##     lsm_l_tca                               html  
##     lsm_l_te                                html  
##     lsm_p_area                              html  
##     lsm_p_cai                               html  
##     lsm_p_circle                            html  
##     lsm_p_contig                            html  
##     lsm_p_core                              html  
##     lsm_p_enn                               html  
##     lsm_p_frac                              html  
##     lsm_p_gyrate                            html  
##     lsm_p_ncore                             html  
##     lsm_p_para                              html  
##     lsm_p_perim                             html  
##     lsm_p_shape                             html  
##     matrix_to_raster                        html  
##     options_landscapemetrics                html  
##     pad_raster                              html  
##     podlasie_ccilc                          html  
##     points_as_mat                           html  
##     proj_info                               html  
##     raster_to_points                        html  
##     rcpp_cell_from_xy                       html  
##     rcpp_create_neighborhood                html  
##     rcpp_get_nearest_neighbor               html  
##     rcpp_xy_from_matrix                     html  
##     sample_lsm                              html  
##     show_cores                              html  
##     show_correlation                        html  
##     show_lsm                                html  
##     show_patches                            html  
##     spatialize_lsm                          html  
##     unpad_raster                            html  
##     window_lsm                              html  
##     finding level-2 HTML links ... done
## 
## *** copying figures
## ** building package indices
## ** installing vignettes
## ** 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 (landscapemetrics3)
devtools::install("~/Software/landscapemetrics")
## 
## ── R CMD build ─────────────────────────────────────────────────────────────────
##   
  
  
   checking 
  
   checking for file 
  
   checking for file ‘/home/jn/Software/landscapemetrics/DESCRIPTION’
  
   checking for file ‘/home/jn/Software/landscapemetrics/DESCRIPTION’ ...
  
   checking for file ‘/home/jn/Software/landscapemetrics/DESCRIPTION’ ... 
  
✔  checking for file ‘/home/jn/Software/landscapemetrics/DESCRIPTION’ (530ms)
## 
  
─  preparing ‘landscapemetrics’: (1s)
##    checking DESCRIPTION meta-information ...
  
   checking DESCRIPTION meta-information ... 
  
✔  checking DESCRIPTION meta-information
## ─  cleaning src
## 
  
  
  
   
  
   checking for LF line-endings in source and make files and shell scripts
  
─  checking for LF line-endings in source and make files and shell scripts (492ms)
## 
  
  
  
   
  
─  checking for empty or unneeded directories
## 
  
  
  
   
  
   building 
  
   building ‘landscapemetrics_2.1.0.tar.gz’
  
─  building ‘landscapemetrics_2.1.0.tar.gz’
## 
  
   
## 
Running /usr/lib64/R/bin/R CMD INSTALL \
##   /tmp/RtmpqQRaHh/landscapemetrics_2.1.0.tar.gz --install-tests 
## * installing to library ‘/home/jn/R/x86_64-redhat-linux-gnu-library/4.3’
## * installing *source* package ‘landscapemetrics’ ...
## ** using staged installation
## ** libs
## using C++ compiler: ‘g++ (GCC) 13.2.1 20230728 (Red Hat 13.2.1-1)’
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c RcppExports.cpp -o RcppExports.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_cclabel.cpp -o rcpp_cclabel.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_create_neighborhood.cpp -o rcpp_create_neighborhood.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_boundaries.cpp -o rcpp_get_boundaries.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_circle.cpp -o rcpp_get_circle.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_class_index_map.cpp -o rcpp_get_class_index_map.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_composition_vector.cpp -o rcpp_get_composition_vector.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_coocurrence_matrix.cpp -o rcpp_get_coocurrence_matrix.o
## rcpp_get_coocurrence_matrix.cpp: In function ‘Rcpp::IntegerMatrix rcpp_get_coocurrence_matrix(const Rcpp::IntegerMatrix&, arma::imat)’:
## rcpp_get_coocurrence_matrix.cpp:43:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
##    43 |                         neig_col < ncols &&
##       |                         ~~~~~~~~~^~~~~~~
## rcpp_get_coocurrence_matrix.cpp:44:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
##    44 |                         neig_row < nrows) {
##       |                         ~~~~~~~~~^~~~~~~
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_coocurrence_matrix_diag.cpp -o rcpp_get_coocurrence_matrix_diag.o
## rcpp_get_coocurrence_matrix_diag.cpp: In function ‘Rcpp::IntegerVector rcpp_get_coocurrence_matrix_diag(const Rcpp::IntegerMatrix&, arma::imat)’:
## rcpp_get_coocurrence_matrix_diag.cpp:43:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
##    43 |                         neig_col < ncols &&
##       |                         ~~~~~~~~~^~~~~~~
## rcpp_get_coocurrence_matrix_diag.cpp:44:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
##    44 |                         neig_row < nrows) {
##       |                         ~~~~~~~~~^~~~~~~
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_coocurrence_matrix_single.cpp -o rcpp_get_coocurrence_matrix_single.o
## rcpp_get_coocurrence_matrix_single.cpp: In function ‘Rcpp::IntegerMatrix rcpp_get_coocurrence_matrix_single(const Rcpp::IntegerMatrix&, arma::imat, int)’:
## rcpp_get_coocurrence_matrix_single.cpp:48:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
##    48 |                         neig_col < ncols &&
##       |                         ~~~~~~~~~^~~~~~~
## rcpp_get_coocurrence_matrix_single.cpp:49:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const unsigned int’ [-Wsign-compare]
##    49 |                         neig_row < nrows) {
##       |                         ~~~~~~~~~^~~~~~~
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_coocurrence_vector.cpp -o rcpp_get_coocurrence_vector.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_entropy.cpp -o rcpp_get_entropy.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_nearest_neighbor.cpp -o rcpp_get_nearest_neighbor.o
## rcpp_get_nearest_neighbor.cpp: In function ‘find_min(Rcpp::Matrix<14, Rcpp::PreserveStorage> const&, int, int)’:
## rcpp_get_nearest_neighbor.cpp:59:17: warning: ‘id0’ may be used uninitialized [-Wmaybe-uninitialized]
##    59 |     dist_vec(1) = id0;
##       |     ~~~~~~~~~~~~^~~~~
## rcpp_get_nearest_neighbor.cpp:19:12: note: ‘id0’ was declared here
##    19 |     int k, id0;
##       |            ^~~
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_get_unique_values.cpp -o rcpp_get_unique_values.o
## g++ -std=gnu++17 -I"/usr/include/R" -DNDEBUG  -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/Rcpp/include' -I'/home/jn/R/x86_64-redhat-linux-gnu-library/4.3/RcppArmadillo/include' -I/usr/local/include    -fpic  -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer   -c rcpp_smallest_circle.cpp -o rcpp_smallest_circle.o
## g++ -std=gnu++17 -shared -L/usr/lib64/R/lib -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -o landscapemetrics.so RcppExports.o rcpp_cclabel.o rcpp_create_neighborhood.o rcpp_get_boundaries.o rcpp_get_circle.o rcpp_get_class_index_map.o rcpp_get_composition_vector.o rcpp_get_coocurrence_matrix.o rcpp_get_coocurrence_matrix_diag.o rcpp_get_coocurrence_matrix_single.o rcpp_get_coocurrence_vector.o rcpp_get_entropy.o rcpp_get_nearest_neighbor.o rcpp_get_unique_values.o rcpp_smallest_circle.o -L/usr/lib64/R/lib -lR
## installing to /home/jn/R/x86_64-redhat-linux-gnu-library/4.3/00LOCK-landscapemetrics/00new/landscapemetrics/libs
## ** R
## ** data
## *** moving datasets to lazyload DB
## ** inst
## ** tests
## ** byte-compile and prepare package for lazy loading
## ** help
## *** installing help indices
##   converting help for package ‘landscapemetrics’
##     finding HTML links ... done
##     augusta_nlcd                            html  
##     calculate_correlation                   html  
##     calculate_lsm                           html  
##     check_landscape                         html  
##     construct_buffer                        html  
##     data_info                               html  
##     extract_lsm                             html  
##     get_adjacencies                         html  
##     get_area_patches                        html  
##     get_boundaries                          html  
##     get_centroids                           html  
##     get_circumscribingcircle                html  
##     get_class_patches                       html  
##     get_complexity                          html  
##     get_enn_patch                           html  
##     get_nearestneighbour                    html  
##     get_patches                             html  
##     get_perimeter_patch                     html  
##     get_points                              html  
##     get_unique_values                       html  
##     landscape                               html  
##     landscape_as_list                       html  
##     landscapemetrics                        html  
##     list_lsm                                html  
##     lsm_abbreviations_names                 html  
##     lsm_c_ai                                html  
##     lsm_c_area_cv                           html  
##     lsm_c_area_mn                           html  
##     lsm_c_area_sd                           html  
##     lsm_c_ca                                html  
##     lsm_c_cai_cv                            html  
##     lsm_c_cai_mn                            html  
##     lsm_c_cai_sd                            html  
##     lsm_c_circle_cv                         html  
##     lsm_c_circle_mn                         html  
##     lsm_c_circle_sd                         html  
##     lsm_c_clumpy                            html  
##     lsm_c_cohesion                          html  
##     lsm_c_contig_cv                         html  
##     lsm_c_contig_mn                         html  
##     lsm_c_contig_sd                         html  
##     lsm_c_core_cv                           html  
##     lsm_c_core_mn                           html  
##     lsm_c_core_sd                           html  
##     lsm_c_cpland                            html  
##     lsm_c_dcad                              html  
##     lsm_c_dcore_cv                          html  
##     lsm_c_dcore_mn                          html  
##     lsm_c_dcore_sd                          html  
##     lsm_c_division                          html  
##     lsm_c_ed                                html  
##     lsm_c_enn_cv                            html  
##     lsm_c_enn_mn                            html  
##     lsm_c_enn_sd                            html  
##     lsm_c_frac_cv                           html  
##     lsm_c_frac_mn                           html  
##     lsm_c_frac_sd                           html  
##     lsm_c_gyrate_cv                         html  
##     lsm_c_gyrate_mn                         html  
##     lsm_c_gyrate_sd                         html  
##     lsm_c_iji                               html  
##     lsm_c_lpi                               html  
##     lsm_c_lsi                               html  
##     lsm_c_mesh                              html  
##     lsm_c_ndca                              html  
##     lsm_c_nlsi                              html  
##     lsm_c_np                                html  
##     lsm_c_pafrac                            html  
##     lsm_c_para_cv                           html  
##     lsm_c_para_mn                           html  
##     lsm_c_para_sd                           html  
##     lsm_c_pd                                html  
##     lsm_c_pladj                             html  
##     lsm_c_pland                             html  
##     lsm_c_shape_cv                          html  
##     lsm_c_shape_mn                          html  
##     lsm_c_shape_sd                          html  
##     lsm_c_split                             html  
##     lsm_c_tca                               html  
##     lsm_c_te                                html  
##     lsm_l_ai                                html  
##     lsm_l_area_cv                           html  
##     lsm_l_area_mn                           html  
##     lsm_l_area_sd                           html  
##     lsm_l_cai_cv                            html  
##     lsm_l_cai_mn                            html  
##     lsm_l_cai_sd                            html  
##     lsm_l_circle_cv                         html  
##     lsm_l_circle_mn                         html  
##     lsm_l_circle_sd                         html  
##     lsm_l_cohesion                          html  
##     lsm_l_condent                           html  
##     lsm_l_contag                            html  
##     lsm_l_contig_cv                         html  
##     lsm_l_contig_mn                         html  
##     lsm_l_contig_sd                         html  
##     lsm_l_core_cv                           html  
##     lsm_l_core_mn                           html  
##     lsm_l_core_sd                           html  
##     lsm_l_dcad                              html  
##     lsm_l_dcore_cv                          html  
##     lsm_l_dcore_mn                          html  
##     lsm_l_dcore_sd                          html  
##     lsm_l_division                          html  
##     lsm_l_ed                                html  
##     lsm_l_enn_cv                            html  
##     lsm_l_enn_mn                            html  
##     lsm_l_enn_sd                            html  
##     lsm_l_ent                               html  
##     lsm_l_frac_cv                           html  
##     lsm_l_frac_mn                           html  
##     lsm_l_frac_sd                           html  
##     lsm_l_gyrate_cv                         html  
##     lsm_l_gyrate_mn                         html  
##     lsm_l_gyrate_sd                         html  
##     lsm_l_iji                               html  
##     lsm_l_joinent                           html  
##     lsm_l_lpi                               html  
##     lsm_l_lsi                               html  
##     lsm_l_mesh                              html  
##     lsm_l_msidi                             html  
##     lsm_l_msiei                             html  
##     lsm_l_mutinf                            html  
##     lsm_l_ndca                              html  
##     lsm_l_np                                html  
##     lsm_l_pafrac                            html  
##     lsm_l_para_cv                           html  
##     lsm_l_para_mn                           html  
##     lsm_l_para_sd                           html  
##     lsm_l_pd                                html  
##     lsm_l_pladj                             html  
##     lsm_l_pr                                html  
##     lsm_l_prd                               html  
##     lsm_l_relmutinf                         html  
##     lsm_l_rpr                               html  
##     lsm_l_shape_cv                          html  
##     lsm_l_shape_mn                          html  
##     lsm_l_shape_sd                          html  
##     lsm_l_shdi                              html  
##     lsm_l_shei                              html  
##     lsm_l_sidi                              html  
##     lsm_l_siei                              html  
##     lsm_l_split                             html  
##     lsm_l_ta                                html  
##     lsm_l_tca                               html  
##     lsm_l_te                                html  
##     lsm_p_area                              html  
##     lsm_p_cai                               html  
##     lsm_p_circle                            html  
##     lsm_p_contig                            html  
##     lsm_p_core                              html  
##     lsm_p_enn                               html  
##     lsm_p_frac                              html  
##     lsm_p_gyrate                            html  
##     lsm_p_ncore                             html  
##     lsm_p_para                              html  
##     lsm_p_perim                             html  
##     lsm_p_shape                             html  
##     matrix_to_raster                        html  
##     options_landscapemetrics                html  
##     pad_raster                              html  
##     podlasie_ccilc                          html  
##     points_as_mat                           html  
##     prepare_extras                          html  
##     proj_info                               html  
##     raster_to_points                        html  
##     rcpp_cell_from_xy                       html  
##     rcpp_create_neighborhood                html  
##     rcpp_get_nearest_neighbor               html  
##     rcpp_xy_from_matrix                     html  
##     sample_lsm                              html  
##     show_cores                              html  
##     show_correlation                        html  
##     show_lsm                                html  
##     show_patches                            html  
##     spatialize_lsm                          html  
##     unpad_raster                            html  
##     window_lsm                              html  
##     finding level-2 HTML links ... done
## 
## *** copying figures
## ** building package indices
## ** installing vignettes
## ** 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 (landscapemetrics)
landscape <- terra::rast(landscapemetrics::augusta_nlcd)
# landscape <- terra::disagg(landscape, 4)
# landscape <- terra::aggregate(landscape, 4, fun = "modal")
bench::mark(landscapemetrics::calculate_lsm(landscape, verbose = FALSE),
            landscapemetrics3::calculate_lsm(landscape, verbose = FALSE),
            iterations = 1, check = FALSE)
## Warning: Some expressions had a GC in every iteration; so filtering is
## disabled.
## # A tibble: 2 × 6
##   expression                             min median `itr/sec` mem_alloc `gc/sec`
##   <bch:expr>                          <bch:> <bch:>     <dbl> <bch:byt>    <dbl>
## 1 landscapemetrics::calculate_lsm(la…  42.8s  42.8s   0.0234       17GB     2.38
## 2 landscapemetrics3::calculate_lsm(l…  3.78m  3.78m   0.00440    54.4GB     1.18
landscape2 <- terra::rast(landscapemetrics::landscape)
# landscape <- terra::disagg(landscape, 4)
# landscape <- terra::aggregate(landscape, 4, fun = "modal")
bench::mark(landscapemetrics::calculate_lsm(landscape2, verbose = FALSE),
            landscapemetrics3::calculate_lsm(landscape2, verbose = FALSE),
            iterations = 10, check = FALSE)
## # A tibble: 2 × 6
##   expression                            min  median `itr/sec` mem_alloc `gc/sec`
##   <bch:expr>                          <bch> <bch:t>     <dbl> <bch:byt>    <dbl>
## 1 landscapemetrics::calculate_lsm(la… 467ms 551.6ms     1.79     17.5MB     1.79
## 2 landscapemetrics3::calculate_lsm(l…    6s    6.9s     0.144    45.6MB     0