cnfoley / hyprcoloc

R package for performing high dimensional multi-trait colocalization analyses using GWAS summary data
39 stars 10 forks source link

Issues with Installation #6

Open smozaffari opened 2 years ago

smozaffari commented 2 years ago

Hi, I'm having issues with installation and have tried both options provided as well as installing from source. I would appreciate any ideas on what I'm missing. Thanks!

`install_github("cnfoley/hyprcoloc", build_opts = c("--resave-data", "--no-manual"), build_vignettes = TRUE) Downloading GitHub repo cnfoley/hyprcoloc@HEAD checking for file ‘/private/var/folders/2k/0rmyhh4s40746mvb7gn6s5wm0000gp/T/Rtmp3oichY/remotesb1fc121c95d5/cnfoley-hyprcoloc-✔ checking for file ‘/private/var/folders/2k/0rmyhh4s40746mvb7gn6s5wm0000gp/T/Rtmp3oichY/remotesb1fc121c95d5/cnfoley-hyprcoloc-26ea595/DESCRIPTION’ ─ preparing ‘hyprcoloc’: ✔ checking DESCRIPTION meta-information ... ─ cleaning src ─ installing the package to build vignettes

─ installing source package ‘hyprcoloc’ ... using staged installation libs clang++ -mmacosx-version-min=10.13 -std=gnu++14 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppEigen/include' -I/usr/local/include -fPIC -Wall -g -O2 -Wall -pedantic -fdiagnostics-color=always -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppEigen/include/RcppEigen.h:25: In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppEigen/include/RcppEigenForward.h:26: In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/RcppCommon.h:30: In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp/r/headers.h:62: In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp/platform/compiler.h:100: /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:317:9: error: no member named 'signbit' in the global namespace using ::signbit; ~~^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:318:9: error: no member named 'fpclassify' in the global namespace using ::fpclassify; ~~^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:319:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'? using ::isfinite; ~~^ /usr/local/include/math.h:752:12: note: 'finite' declared here extern int finite(double) ^ In file included from RcppExports.cpp:4: In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppEigen/include/RcppEigen.h:25: In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppEigen/include/RcppEigenForward.h:26: In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/RcppCommon.h:30: In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp/r/headers.h:62: In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include/Rcpp/platform/compiler.h:100: /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:320:9: error: no member named 'isinf' in the global namespace using ::isinf; ~~^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:321:9: error: no member named 'isnan' in the global namespace using ::isnan; ~~^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:322:9: error: no member named 'isnormal' in the global namespace using ::isnormal; ~~^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:323:9: error: no member named 'isgreater' in the global namespace using ::isgreater; ~~^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:324:9: error: no member named 'isgreaterequal' in the global namespace using ::isgreaterequal; ~~^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:325:9: error: no member named 'isless' in the global namespace using ::isless; ~~^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:326:9: error: no member named 'islessequal' in the global namespace using ::islessequal; ~~^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:327:9: error: no member named 'islessgreater' in the global namespace using ::islessgreater; ~~^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:328:9: error: no member named 'isunordered' in the global namespace using ::isunordered; ~~^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:329:9: error: no member named 'isunordered' in the global namespace using ::isunordered; ~~^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:640:26: error: no template named 'numeric_limits' bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits), ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:640:60: error: no template named 'numeric_limits' bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits), ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:641:18: error: no template named 'numeric_limits' int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)> ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:641:50: error: no template named 'numeric_limits' int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)> ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:646:17: error: no template named 'numeric_limits' static_assert(numeric_limits<_FloatT>::radix == 2, "FloatT has incorrect radix"); ^ /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:649:25: error: no template named 'numeric_limits' return _FloatBigger ? numeric_limits<_IntT>::max() : (numeric_limits<_IntT>::max() >> _Bits << _Bits); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [RcppExports.o] Error 1 ERROR: compilation failed for package ‘hyprcoloc’ ─ removing ‘/private/var/folders/2k/0rmyhh4s40746mvb7gn6s5wm0000gp/T/RtmpqjqdvP/Rinstb55a404e844e/hyprcoloc’

ERROR: package installation failed Error: Failed to install 'hyprcoloc' from GitHub: System command 'R' failed, exit status: 1, stdout & stderr were printed`

`> sessionInfo() R version 4.1.2 (2021-11-01) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Catalina 10.15.7

Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] devtools_2.4.3 usethis_2.1.5

loaded via a namespace (and not attached): [1] magrittr_2.0.2 pkgload_1.2.4 R6_2.5.1 rlang_1.0.2 [5] fastmap_1.1.0 tools_4.1.2 pkgbuild_1.3.1 sessioninfo_1.2.2 [9] cli_3.2.0 withr_2.4.3 ellipsis_0.3.2 remotes_2.4.2 [13] rprojroot_2.0.2 lifecycle_1.0.1 crayon_1.5.0 brio_1.1.3 [17] processx_3.5.2 purrr_0.3.4 callr_3.7.0 fs_1.5.2 [21] ps_1.6.0 curl_4.3.2 testthat_3.1.2 memoise_2.0.1 [25] glue_1.6.2 cachem_1.0.6 compiler_4.1.2 desc_1.4.0 [29] prettyunits_1.1.1`

kllrdr commented 1 year ago

I could solve this issue by using remotes instead of devtools: library(remotes) remotes::install_github("jrs95/hyprcoloc") library(hyprcoloc)

laleoarrow commented 2 months ago

Im also having this issue.

''' Downloading GitHub repo cnfoley/hyprcoloc@HEAD ── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── checking for file ‘/private/var/folders/v6/py7jp5dd5755mjs1m63g9wbc0000gn/T/Rtmp2H9Zjh/remotes623773e7a27e/cnfoley-hyprcoloc-26ea595✔ checking for file ‘/private/var/folders/v6/py7jp5dd5755mjs1m63g9wbc0000gn/T/Rtmp2H9Zjh/remotes623773e7a27e/cnfoley-hyprcoloc-26ea595/DESCRIPTION’ ─ preparing ‘hyprcoloc’: ✔ checking DESCRIPTION meta-information ... ─ cleaning src ─ installing the package to build vignettes (442ms)

─ installing source package ‘hyprcoloc’ ... using staged installation libs using C++ compiler: ‘clang version 18.1.7’ using SDK: ‘MacOSX14.2.sdk’ arm64-apple-darwin20.0.0-clang++ -std=gnu++17 -I"/opt/anaconda3/envs/hyprcoloc/lib/R/include" -DNDEBUG -I'/opt/anaconda3/envs/hyprcoloc/lib/R/library/Rcpp/include' -I'/opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include' -D_FORTIFY_SOURCE=2 -isystem /opt/anaconda3/envs/hyprcoloc/include -mmacosx-version-min=11.0 -I/opt/anaconda3/envs/hyprcoloc/include -fPIC -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem /opt/anaconda3/envs/hyprcoloc/include -fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/r-base-split_1714471553740/work=/usr/local/src/conda/r-base-4.3.3 -fdebug-prefix-map=/opt/anaconda3/envs/hyprcoloc=/usr/local/src/conda-prefix -Wall -pedantic -fdiagnostics-color=always -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/RcppEigen.h:25: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/RcppEigenForward.h:28: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/Eigen/Dense:1: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/Eigen/Core:171: /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/Eigen/src/Core/MathFunctions.h:743:16: error: no member named 'Rlog1p' in namespace 'std'; did you mean 'log1p'? 743 | using std::log1p; | ~^~~~~ | log1p /opt/anaconda3/envs/hyprcoloc/lib/R/include/Rmath.h:73:15: note: expanded from macro 'log1p' 73 | #define log1p Rlog1p | ^ /opt/anaconda3/envs/hyprcoloc/bin/../include/c++/v1/cmath:449:9: note: 'log1p' declared here 449 | using ::log1p _LIBCPP_USING_IF_EXISTS; | ^ In file included from RcppExports.cpp:4: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/RcppEigen.h:25: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/RcppEigenForward.h:29: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/Eigen/Sparse:26: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/Eigen/SparseCore:61: /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable] 273 | Index count = 0; | ^ In file included from RcppExports.cpp:4: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/RcppEigen.h:25: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/RcppEigenForward.h:29: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/Eigen/Sparse:29: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/Eigen/SparseLU:35: /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable] 78 | Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree | ^ /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable] 79 | Index nsuper_et = 0; // Number of relaxed snodes in the original etree | ^ In file included from RcppExports.cpp:4: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/RcppEigen.h:25: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/RcppEigenForward.h:31: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46: /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable] 72 | Index replacements = 0; | ^ In file included from RcppExports.cpp:4: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/RcppEigen.h:25: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/RcppEigenForward.h:37: In file included from /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/unsupported/Eigen/SparseExtra:45: /opt/anaconda3/envs/hyprcoloc/lib/R/library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable] 246 | int count = 0; | ^ 5 warnings and 1 error generated. make: *** [/opt/anaconda3/envs/hyprcoloc/lib/R/etc/Makeconf:200: RcppExports.o] Error 1 ERROR: compilation failed for package ‘hyprcoloc’ ─ removing ‘/private/var/folders/v6/py7jp5dd5755mjs1m63g9wbc0000gn/T/Rtmp4iERkl/Rinst62ccd8aeb15/hyprcoloc’

ERROR: package installation failed Error: Failed to install 'hyprcoloc' from GitHub: ! System command 'R' failed '''

arunhpatil commented 1 month ago

Hi @cnfoley,

I have the same issue.

The error is as follows:


Downloading GitHub repo jrs95/hyprcoloc@HEAD
── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘/private/var/folders/sp/mbfx40bn6bx889h6t4pqknvm0000gn/T/RtmpKQ9xx6/remotes16f424bbce0c5/jrs95-hyprcoloc-0348bbd/DESCRIPTION’ ...
─  preparing ‘hyprcoloc’:
✔  checking DESCRIPTION meta-information ...
─  cleaning src
─  installing the package to build vignettes
         -----------------------------------
─  installing *source* package ‘hyprcoloc’ ...
   ** using staged installation
   ** libs
   using C++ compiler: ‘Apple clang version 15.0.0 (clang-1500.3.9.4)’
   using SDK: ‘MacOSX14.4.sdk’
   clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -Wall -pedantic -fdiagnostics-color=always  -c RcppExports.cpp -o RcppExports.o
   In file included from RcppExports.cpp:4:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Sparse:26:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/SparseCore:61:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
         Index count = 0;
               ^
   In file included from RcppExports.cpp:4:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Sparse:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/SparseLU:35:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable]
     Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree 
           ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
     Index nsuper_et = 0; // Number of relaxed snodes in the original etree 
           ^
   In file included from RcppExports.cpp:4:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:31:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable]
                           Index replacements = 0;
                                 ^
   In file included from RcppExports.cpp:4:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:37:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/SparseExtra:45:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
     int count = 0;
         ^
   5 warnings generated.
   clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -Wall -pedantic -fdiagnostics-color=always  -c align1.cpp -o align1.o
   In file included from align1.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Sparse:26:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/SparseCore:61:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
         Index count = 0;
               ^
   In file included from align1.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Sparse:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/SparseLU:35:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable]
     Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree 
           ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
     Index nsuper_et = 0; // Number of relaxed snodes in the original etree 
           ^
   In file included from align1.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:31:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable]
                           Index replacements = 0;
                                 ^
   In file included from align1.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:37:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/SparseExtra:45:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
     int count = 0;
         ^
   5 warnings generated.
   clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -Wall -pedantic -fdiagnostics-color=always  -c align12.cpp -o align12.o
   In file included from align12.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Sparse:26:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/SparseCore:61:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
         Index count = 0;
               ^
   In file included from align12.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Sparse:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/SparseLU:35:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable]
     Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree 
           ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
     Index nsuper_et = 0; // Number of relaxed snodes in the original etree 
           ^
   In file included from align12.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:31:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable]
                           Index replacements = 0;
                                 ^
   In file included from align12.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:37:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/SparseExtra:45:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
     int count = 0;
         ^
   5 warnings generated.
   clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -Wall -pedantic -fdiagnostics-color=always  -c align1ind.cpp -o align1ind.o
   In file included from align1ind.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Sparse:26:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/SparseCore:61:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
         Index count = 0;
               ^
   In file included from align1ind.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Sparse:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/SparseLU:35:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable]
     Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree 
           ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
     Index nsuper_et = 0; // Number of relaxed snodes in the original etree 
           ^
   In file included from align1ind.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:31:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable]
                           Index replacements = 0;
                                 ^
   In file included from align1ind.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:37:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/SparseExtra:45:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
     int count = 0;
         ^
   5 warnings generated.
   clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -Wall -pedantic -fdiagnostics-color=always  -c align2.cpp -o align2.o
   In file included from align2.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Sparse:26:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/SparseCore:61:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseCore/TriangularSolver.h:273:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
         Index count = 0;
               ^
   In file included from align2.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Sparse:29:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/SparseLU:35:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:78:9: warning: variable 'nsuper_et_post' set but not used [-Wunused-but-set-variable]
     Index nsuper_et_post = 0; // Number of relaxed snodes in postordered etree 
           ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseLU/SparseLU_heap_relax_snode.h:79:9: warning: variable 'nsuper_et' set but not used [-Wunused-but-set-variable]
     Index nsuper_et = 0; // Number of relaxed snodes in the original etree 
           ^
   In file included from align2.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:31:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/IterativeSolvers:46:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/src/IterativeSolvers/IDRS.h:72:10: warning: variable 'replacements' set but not used [-Wunused-but-set-variable]
                           Index replacements = 0;
                                 ^
   In file included from align2.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:37:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/SparseExtra:45:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/unsupported/Eigen/src/SparseExtra/MarketIO.h:246:7: warning: variable 'count' set but not used [-Wunused-but-set-variable]
     int count = 0;
         ^
   align2.cpp:180:17: error: assigning to 'Scalar' (aka 'double') from incompatible type 'typename internal::enable_if<internal::valid_indexed_view_overload<double, double>::value && internal::traits<typename ConstIndexedViewType<double, double>::type>::ReturnAsIndexedView, typename ConstIndexedViewType<double, double>::type>::type' (aka 'Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1>>, double, double>')
      tmp_rho(i) = RHO(snps1(1 , i)-1, snps1(0 , i)-1);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   align2.cpp:213:46: error: assigning to 'Scalar' (aka 'double') from incompatible type 'const CwiseBinaryOp<internal::scalar_product_op<typename internal::traits<IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, SingleRange>>::Scalar, typename internal::promote_scalar_arg<Scalar, double, (Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<Scalar, double, Eigen::internal::scalar_product_op<Scalar, double>>>::value)>::type>, const IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, SingleRange>, const typename internal::plain_constant_type<IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, SingleRange>, typename internal::promote_scalar_arg<Scalar, double, (Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<Scalar, double, Eigen::internal::scalar_product_op<Scalar, double>>>::value)>::type>::type>' (aka 'const CwiseBinaryOp<scalar_product_op<double, double>, const Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1, 0, -1, -1>, 0, Eigen::Stride<0, 0>>, double, Eigen::internal::SingleRange>, const CwiseNullaryOp<scalar_constant_op<double>, const Eigen::Matrix<double, -1, 1, 0, -1, 1>>>')
        snp_cor_1cv(2*m) = RHO(snps1(0,i)-1, j2)*tet_1cv(2*m);
                           ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
   align2.cpp:214:48: error: assigning to 'Scalar' (aka 'double') from incompatible type 'const CwiseBinaryOp<internal::scalar_product_op<typename internal::traits<IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, SingleRange>>::Scalar, typename internal::promote_scalar_arg<Scalar, double, (Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<Scalar, double, Eigen::internal::scalar_product_op<Scalar, double>>>::value)>::type>, const IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, SingleRange>, const typename internal::plain_constant_type<IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, SingleRange>, typename internal::promote_scalar_arg<Scalar, double, (Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<Scalar, double, Eigen::internal::scalar_product_op<Scalar, double>>>::value)>::type>::type>' (aka 'const CwiseBinaryOp<scalar_product_op<double, double>, const Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1, 0, -1, -1>, 0, Eigen::Stride<0, 0>>, double, Eigen::internal::SingleRange>, const CwiseNullaryOp<scalar_constant_op<double>, const Eigen::Matrix<double, -1, 1, 0, -1, 1>>>')
        snp_cor_1cv(2*m+1) = RHO(snps1(1,i)-1, j2)*tet_1cv(2*m+1);
                             ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
   align2.cpp:265:57: error: assigning to 'Scalar' (aka 'double') from incompatible type 'const CwiseBinaryOp<internal::scalar_product_op<typename internal::traits<IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, double>>::Scalar, typename internal::promote_scalar_arg<Scalar, double, (Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<Scalar, double, Eigen::internal::scalar_product_op<Scalar, double>>>::value)>::type>, const IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, double>, const typename internal::plain_constant_type<IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, double>, typename internal::promote_scalar_arg<Scalar, double, (Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<Scalar, double, Eigen::internal::scalar_product_op<Scalar, double>>>::value)>::type>::type>' (aka 'const CwiseBinaryOp<scalar_product_op<double, double>, const Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1, 0, -1, -1>, 0, Eigen::Stride<0, 0>>, double, double>, const CwiseNullaryOp<scalar_constant_op<double>, const Eigen::Matrix<double, -1, -1, 0, -1, -1>>>')
        snp_cor_2cv(2*m) = RHO(snps1(0,i)-1, snps1(0,j2)-1)*tet_2cv(2*m);
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
   align2.cpp:266:59: error: assigning to 'Scalar' (aka 'double') from incompatible type 'const CwiseBinaryOp<internal::scalar_product_op<typename internal::traits<IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, double>>::Scalar, typename internal::promote_scalar_arg<Scalar, double, (Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<Scalar, double, Eigen::internal::scalar_product_op<Scalar, double>>>::value)>::type>, const IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, double>, const typename internal::plain_constant_type<IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, double>, typename internal::promote_scalar_arg<Scalar, double, (Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<Scalar, double, Eigen::internal::scalar_product_op<Scalar, double>>>::value)>::type>::type>' (aka 'const CwiseBinaryOp<scalar_product_op<double, double>, const Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1, 0, -1, -1>, 0, Eigen::Stride<0, 0>>, double, double>, const CwiseNullaryOp<scalar_constant_op<double>, const Eigen::Matrix<double, -1, -1, 0, -1, -1>>>')
        snp_cor_2cv(2*m+1) = RHO(snps1(1,i)-1, snps1(0,j2)-1)*tet_2cv(2*m+1);
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
   align2.cpp:267:59: error: assigning to 'Scalar' (aka 'double') from incompatible type 'const CwiseBinaryOp<internal::scalar_product_op<typename internal::traits<IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, double>>::Scalar, typename internal::promote_scalar_arg<Scalar, double, (Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<Scalar, double, Eigen::internal::scalar_product_op<Scalar, double>>>::value)>::type>, const IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, double>, const typename internal::plain_constant_type<IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, double>, typename internal::promote_scalar_arg<Scalar, double, (Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<Scalar, double, Eigen::internal::scalar_product_op<Scalar, double>>>::value)>::type>::type>' (aka 'const CwiseBinaryOp<scalar_product_op<double, double>, const Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1, 0, -1, -1>, 0, Eigen::Stride<0, 0>>, double, double>, const CwiseNullaryOp<scalar_constant_op<double>, const Eigen::Matrix<double, -1, -1, 0, -1, -1>>>')
        snp_cor_2cv_1(2*m) = RHO(snps1(0,i)-1, snps1(1,j2)-1)*tet_2cv(2*m);
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
   align2.cpp:268:61: error: assigning to 'Scalar' (aka 'double') from incompatible type 'const CwiseBinaryOp<internal::scalar_product_op<typename internal::traits<IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, double>>::Scalar, typename internal::promote_scalar_arg<Scalar, double, (Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<Scalar, double, Eigen::internal::scalar_product_op<Scalar, double>>>::value)>::type>, const IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, double>, const typename internal::plain_constant_type<IndexedView<const Map<Matrix<double, -1, -1, 0, -1, -1>, 0, Stride<0, 0>>, double, double>, typename internal::promote_scalar_arg<Scalar, double, (Eigen::internal::has_ReturnType<Eigen::ScalarBinaryOpTraits<Scalar, double, Eigen::internal::scalar_product_op<Scalar, double>>>::value)>::type>::type>' (aka 'const CwiseBinaryOp<scalar_product_op<double, double>, const Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1, 0, -1, -1>, 0, Eigen::Stride<0, 0>>, double, double>, const CwiseNullaryOp<scalar_constant_op<double>, const Eigen::Matrix<double, -1, -1, 0, -1, -1>>>')
        snp_cor_2cv_1(2*m+1) = RHO(snps1(1,i)-1, snps1(1,j2)-1)*tet_2cv(2*m+1);
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
   align2.cpp:277:37: error: assigning to 'Scalar' (aka 'double') from incompatible type 'typename internal::enable_if<internal::valid_indexed_view_overload<double, double>::value && internal::traits<typename ConstIndexedViewType<double, double>::type>::ReturnAsIndexedView, typename ConstIndexedViewType<double, double>::type>::type' (aka 'Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1>>, double, double>')
       sigZ2(2*ncolZco+1, 2*ncolZco) = RHO(snps1(1 , j2)-1, snps1(0 , j2)-1);
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   align2.cpp:278:37: error: assigning to 'Scalar' (aka 'double') from incompatible type 'typename internal::enable_if<internal::valid_indexed_view_overload<double, double>::value && internal::traits<typename ConstIndexedViewType<double, double>::type>::ReturnAsIndexedView, typename ConstIndexedViewType<double, double>::type>::type' (aka 'Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1>>, double, double>')
       sigZ2(2*ncolZco, 2*ncolZco+1) = RHO(snps1(1 , j2)-1, snps1(0 , j2)-1);
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from align2.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:28:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Dense:1:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Core:162:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Meta.h:479:50: error: member reference base type 'const double' is not a structure or union
   EIGEN_CONSTEXPR Index size(const T& x) { return x.size(); }
                                                   ~^~~~~
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/IndexedView.h:125:41: note: in instantiation of function template specialization 'Eigen::internal::size<double>' requested here
     Index rows() const { return internal::size(m_rowIndices); }
                                           ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/../plugins/CommonCwiseBinaryOps.h:50:1: note: in instantiation of member function 'Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1>>, double, Eigen::internal::SingleRange>::rows' requested here
   EIGEN_MAKE_SCALAR_BINARY_OP(operator*,product)
   ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Macros.h:1382:3: note: expanded from macro 'EIGEN_MAKE_SCALAR_BINARY_OP'
     EIGEN_MAKE_SCALAR_BINARY_OP_ONTHERIGHT(METHOD,OPNAME)
     ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Macros.h:1368:86: note: expanded from macro 'EIGEN_MAKE_SCALAR_BINARY_OP_ONTHERIGHT'
              typename internal::plain_constant_type<Derived,PromotedT>::type(derived().rows(), derived().cols(), internal::scalar_constant_op<PromotedT>(scalar))); \
                                                                                        ^
   align2.cpp:213:46: note: in instantiation of function template specialization 'Eigen::MatrixBase<Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1>>, double, Eigen::internal::SingleRange>>::operator*<double>' requested here
        snp_cor_1cv(2*m) = RHO(snps1(0,i)-1, j2)*tet_1cv(2*m);
                                                ^
   In file included from align2.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:28:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Dense:1:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Core:311:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/IndexedView.h:125:31: error: no matching function for call to 'size'
     Index rows() const { return internal::size(m_rowIndices); }
                                 ^~~~~~~~~~~~~~
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/../plugins/CommonCwiseBinaryOps.h:50:1: note: in instantiation of member function 'Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1>>, double, double>::rows' requested here
   EIGEN_MAKE_SCALAR_BINARY_OP(operator*,product)
   ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Macros.h:1382:3: note: expanded from macro 'EIGEN_MAKE_SCALAR_BINARY_OP'
     EIGEN_MAKE_SCALAR_BINARY_OP_ONTHERIGHT(METHOD,OPNAME)
     ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Macros.h:1368:86: note: expanded from macro 'EIGEN_MAKE_SCALAR_BINARY_OP_ONTHERIGHT'
              typename internal::plain_constant_type<Derived,PromotedT>::type(derived().rows(), derived().cols(), internal::scalar_constant_op<PromotedT>(scalar))); \
                                                                                        ^
   align2.cpp:265:57: note: in instantiation of function template specialization 'Eigen::MatrixBase<Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1>>, double, double>>::operator*<double>' requested here
        snp_cor_2cv(2*m) = RHO(snps1(0,i)-1, snps1(0,j2)-1)*tet_2cv(2*m);
                                                           ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Meta.h:479:23: note: candidate template ignored: substitution failure [with T = double]
   EIGEN_CONSTEXPR Index size(const T& x) { return x.size(); }
                         ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Meta.h:482:23: note: candidate template ignored: could not match 'const T[N]' against 'const double'
   EIGEN_CONSTEXPR Index size(const T (&) [N]) { return N; }
                         ^
   In file included from align2.cpp:3:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigen.h:25:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/RcppEigenForward.h:28:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Dense:1:
   In file included from /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/Core:311:
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/IndexedView.h:128:31: error: no matching function for call to 'size'
     Index cols() const { return internal::size(m_colIndices); }
                                 ^~~~~~~~~~~~~~
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/../plugins/CommonCwiseBinaryOps.h:50:1: note: in instantiation of member function 'Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1>>, double, double>::cols' requested here
   EIGEN_MAKE_SCALAR_BINARY_OP(operator*,product)
   ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Macros.h:1382:3: note: expanded from macro 'EIGEN_MAKE_SCALAR_BINARY_OP'
     EIGEN_MAKE_SCALAR_BINARY_OP_ONTHERIGHT(METHOD,OPNAME)
     ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Macros.h:1368:104: note: expanded from macro 'EIGEN_MAKE_SCALAR_BINARY_OP_ONTHERIGHT'
              typename internal::plain_constant_type<Derived,PromotedT>::type(derived().rows(), derived().cols(), internal::scalar_constant_op<PromotedT>(scalar))); \
                                                                                                          ^
   align2.cpp:265:57: note: in instantiation of function template specialization 'Eigen::MatrixBase<Eigen::IndexedView<const Eigen::Map<Eigen::Matrix<double, -1, -1>>, double, double>>::operator*<double>' requested here
        snp_cor_2cv(2*m) = RHO(snps1(0,i)-1, snps1(0,j2)-1)*tet_2cv(2*m);
                                                           ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Meta.h:479:23: note: candidate template ignored: substitution failure [with T = double]
   EIGEN_CONSTEXPR Index size(const T& x) { return x.size(); }
                         ^
   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Meta.h:482:23: note: candidate template ignored: could not match 'const T[N]' against 'const double'
   EIGEN_CONSTEXPR Index size(const T (&) [N]) { return N; }
                         ^
   5 warnings and 12 errors generated.
   make: *** [align2.o] Error 1
   ERROR: compilation failed for package ‘hyprcoloc’
─  removing ‘/private/var/folders/sp/mbfx40bn6bx889h6t4pqknvm0000gn/T/Rtmppa4pxC/Rinst17c4c4d7e673b/hyprcoloc’
         -----------------------------------
   ERROR: package installation failed
Error: Failed to install 'hyprcoloc' from GitHub:
  ! System command 'R' failed

session Info:


 session_info()
─ Session info ────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.4.0 (2024-04-24)
 os       macOS Sonoma 14.5
 system   aarch64, darwin20
 ui       RStudio
 language (EN)
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       America/New_York
 date     2024-07-22
 rstudio  2024.04.2+764 Chocolate Cosmos (desktop)
 pandoc   NA

─ Packages ────────────────────────────────────────────────────────────────────────────────────────────
 package     * version date (UTC) lib source
 cachem        1.1.0   2024-05-16 [1] CRAN (R 4.4.0)
 callr         3.7.6   2024-03-25 [1] CRAN (R 4.4.0)
 cli           3.6.3   2024-06-21 [1] CRAN (R 4.4.0)
 curl          5.2.1   2024-03-01 [1] CRAN (R 4.4.0)
 desc          1.4.3   2023-12-10 [1] CRAN (R 4.4.0)
 devtools    * 2.4.5   2022-10-11 [1] CRAN (R 4.4.0)
 digest        0.6.36  2024-06-23 [1] CRAN (R 4.4.0)
 ellipsis      0.3.2   2021-04-29 [1] CRAN (R 4.4.0)
 fastmap       1.2.0   2024-05-15 [1] CRAN (R 4.4.0)
 fs            1.6.4   2024-04-25 [1] CRAN (R 4.4.0)
 glue          1.7.0   2024-01-09 [1] CRAN (R 4.4.0)
 htmltools     0.5.8.1 2024-04-04 [1] CRAN (R 4.4.0)
 htmlwidgets   1.6.4   2023-12-06 [1] CRAN (R 4.4.0)
 httpuv        1.6.15  2024-03-26 [1] CRAN (R 4.4.0)
 later         1.3.2   2023-12-06 [1] CRAN (R 4.4.0)
 lifecycle     1.0.4   2023-11-07 [1] CRAN (R 4.4.0)
 magrittr      2.0.3   2022-03-30 [1] CRAN (R 4.4.0)
 memoise       2.0.1   2021-11-26 [1] CRAN (R 4.4.0)
 mime          0.12    2021-09-28 [1] CRAN (R 4.4.0)
 miniUI        0.1.1.1 2018-05-18 [1] CRAN (R 4.4.0)
 pkgbuild      1.4.4   2024-03-17 [1] CRAN (R 4.4.0)
 pkgload       1.4.0   2024-06-28 [1] CRAN (R 4.4.0)
 processx      3.8.4   2024-03-16 [1] CRAN (R 4.4.0)
 profvis       0.3.8   2023-05-02 [1] CRAN (R 4.4.0)
 promises      1.3.0   2024-04-05 [1] CRAN (R 4.4.0)
 ps            1.7.7   2024-07-02 [1] CRAN (R 4.4.0)
 purrr         1.0.2   2023-08-10 [1] CRAN (R 4.4.0)
 R6            2.5.1   2021-08-19 [1] CRAN (R 4.4.0)
 Rcpp          1.0.13  2024-07-17 [1] CRAN (R 4.4.0)
 remotes     * 2.5.0   2024-03-17 [1] CRAN (R 4.4.0)
 rlang         1.1.4   2024-06-04 [1] CRAN (R 4.4.0)
 rstudioapi    0.16.0  2024-03-24 [1] CRAN (R 4.4.0)
 sessioninfo   1.2.2   2021-12-06 [1] CRAN (R 4.4.0)
 shiny         1.8.1.1 2024-04-02 [1] CRAN (R 4.4.0)
 stringi       1.8.4   2024-05-06 [1] CRAN (R 4.4.0)
 stringr       1.5.1   2023-11-14 [1] CRAN (R 4.4.0)
 urlchecker    1.0.1   2021-11-30 [1] CRAN (R 4.4.0)
 usethis     * 2.2.3   2024-02-19 [1] CRAN (R 4.4.0)
 vctrs         0.6.5   2023-12-01 [1] CRAN (R 4.4.0)
 xtable        1.8-4   2019-04-21 [1] CRAN (R 4.4.0)

 [1] /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library
cyang-2014 commented 1 week ago

I found the authors documented at https://github.com/jrs95/hyprcoloc#installation for the latest installation procedures/R scripts.

arunhpatil commented 1 week ago

@cyang-2014 ,

Thank you. I figured out from this closed issue. I was hoping the authors had an alternative method of installing instead of downgrading another package.

Also, thanks for sharing the link to jrs95. I didn't know there were two different maintainers with same GitHub repository name.

Thank you, Arun.