Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R package not install #57

Open
WWz33 opened this issue Feb 27, 2025 · 1 comment
Open

R package not install #57

WWz33 opened this issue Feb 27, 2025 · 1 comment

Comments

@WWz33
Copy link

WWz33 commented Feb 27, 2025

/home/cxw/R/x86_64-pc-linux-gnu-library/4.4/BH/include/boost/math/special_functions/binomial.hpp:49:61: note:   candidate expects 4 arguments, 3 provided
   49 |          result = static_cast<T>((n - k) * boost::math::beta(static_cast<T>(k+1), static_cast<T>(n-k), pol));
      |                                            ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/cxw/R/x86_64-pc-linux-gnu-library/4.4/RcppEigen/include/Eigen/Core:277,
                 from /home/cxw/R/x86_64-pc-linux-gnu-library/4.4/RcppEigen/include/Eigen/Dense:1,
                 from /home/cxw/R/x86_64-pc-linux-gnu-library/4.4/RcppEigen/include/RcppEigenForward.h:28,
                 from /home/cxw/R/x86_64-pc-linux-gnu-library/4.4/RcppEigen/include/RcppEigen.h:25,
                 from flashpca.cpp:4:
/home/cxw/R/x86_64-pc-linux-gnu-library/4.4/RcppEigen/include/Eigen/src/Core/CoreEvaluators.h: In instantiation of ‘struct Eigen::internal::evaluator<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true> >’:
/home/cxw/R/x86_64-pc-linux-gnu-library/4.4/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:780:20:   required from ‘void Eigen::internal::call_dense_assignment_loop(DstXprType&, const SrcXprType&, const Functor&) [with DstXprType = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>; SrcXprType = Eigen::Matrix<double, -1, 1>; Functor = Eigen::internal::assign_op<double, double>]’
/home/cxw/R/x86_64-pc-linux-gnu-library/4.4/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:954:31:   required from ‘static void Eigen::internal::Assignment<DstXprType, SrcXprType, Functor, Eigen::internal::Dense2Dense, Weak>::run(DstXprType&, const SrcXprType&, const Functor&) [with DstXprType = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>; SrcXprType = Eigen::Matrix<double, -1, 1>; Functor = Eigen::internal::assign_op<double, double>; Weak = void]’
/home/cxw/R/x86_64-pc-linux-gnu-library/4.4/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:890:49:   required from ‘void Eigen::internal::call_assignment_no_alias(Dst&, const Src&, const Func&) [with Dst = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>; Src = Eigen::Matrix<double, -1, 1>; Func = Eigen::internal::assign_op<double, double>]’
/home/cxw/R/x86_64-pc-linux-gnu-library/4.4/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:858:27:   required from ‘void Eigen::internal::call_assignment(Dst&, const Src&, const Func&, typename Eigen::internal::enable_if<(! Eigen::internal::evaluator_assume_aliasing<Src>::value), void*>::type) [with Dst = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>; Src = Eigen::Matrix<double, -1, 1>; Func = Eigen::internal::assign_op<double, double>; typename Eigen::internal::enable_if<(! Eigen::internal::evaluator_assume_aliasing<Src>::value), void*>::type = void*; typename Eigen::internal::evaluator_traits<SrcXprType>::Shape = Eigen::DenseShape]’
/home/cxw/R/x86_64-pc-linux-gnu-library/4.4/RcppEigen/include/Eigen/src/Core/AssignEvaluator.h:836:18:   required from ‘void Eigen::internal::call_assignment(Dst&, const Src&) [with Dst = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>; Src = Eigen::Matrix<double, -1, 1>]’
/home/cxw/R/x86_64-pc-linux-gnu-library/4.4/RcppEigen/include/Eigen/src/Core/Assign.h:66:28:   required from ‘Derived& Eigen::MatrixBase<Derived>::operator=(const Eigen::DenseBase<OtherDerived>&) [with OtherDerived = Eigen::Matrix<double, -1, 1>; Derived = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>]’
flashpca.cpp:625:30:   required from here
/home/cxw/R/x86_64-pc-linux-gnu-library/4.4/RcppEigen/include/Eigen/src/Core/CoreEvaluators.h:1071:54: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits<double>::type’ {aka ‘__m128d’} [-Wignored-attributes]
 1071 |     PacketAlignment = unpacket_traits<PacketScalar>::alignment,
      |                                                      ^~~~~~~~~

make: *** [/usr/lib/R/etc/Makeconf:204: flashpca.o] Error 1
sessioninfo::package_info(pkgs = c("flashpcaR", "Rcpp", "RcppEigen", "RSpectra", "abind", "BH"))
 ! package   * version   date (UTC) lib source
   abind       1.4-8     2024-09-12 [1] CRAN (R 4.4.2)
   BH          1.87.0-1  2024-12-17 [1] CRAN (R 4.4.2)
 R flashpcaR   <NA>      <NA>       [?] <NA>
   lattice     0.22-5    2023-10-24 [4] CRAN (R 4.3.1)
   Matrix      1.7-1     2024-10-18 [4] CRAN (R 4.4.1)
   Rcpp        1.0.12    2024-01-09 [1] CRAN (R 4.4.2)
   RcppEigen   0.3.4.0.2 2024-08-24 [1] CRAN (R 4.4.2)
   RSpectra    0.16-2    2024-07-18 [1] CRAN (R 4.4.2)

 [1] /home/cxw/R/x86_64-pc-linux-gnu-library/4.4
 [2] /usr/local/lib/R/site-library
 [3] /usr/lib/R/site-library
 [4] /usr/lib/R/library

 R ── Package was removed from disk.
sessioninfo::platform_info()
 setting  value
 version  R version 4.4.2 (2024-10-31)
 os       Linux Mint 21.3
 system   x86_64, linux-gnu
 ui       RStudio
 language en_US:en
 collate  en_US.UTF-8
 ctype    en_US.UTF-8
 tz       Asia/Shanghai
 date     2025-02-27
 rstudio  2024.12.0+467 Kousa Dogwood (desktop)
 pandoc   NA
@WWz33
Copy link
Author

WWz33 commented Feb 27, 2025

vim /src/Makevars "c++==14"
R CMD build --no-build-vignettes flashpcaR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant