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

titertools package cannot be downloaded #2

Open
HaiqiZzz opened this issue Nov 7, 2023 · 2 comments
Open

titertools package cannot be downloaded #2

HaiqiZzz opened this issue Nov 7, 2023 · 2 comments

Comments

@HaiqiZzz
Copy link

HaiqiZzz commented Nov 7, 2023

the error code is:
(there are too many lines of the error that I can't find where the error code start)
...

/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Macros.h:1012:41: note: expanded from macro 'EIGEN_MAKE_SCALAR_BINARY_OP'
  EIGEN_MAKE_SCALAR_BINARY_OP_ONTHELEFT(METHOD,OPNAME) \
                                        ^
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppEigen/include/Eigen/src/Core/util/Macros.h:1005:4: note: expanded from macro 'EIGEN_MAKE_SCALAR_BINARY_OP_ONTHELEFT'
  (METHOD)(const T& scalar, const StorageBaseType& matrix) { \
   ^
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseBinaryOp.h:712:1: note: candidate template ignored: could not match 'const MatrixBase<DenseDerived>' against 'const int'
operator-(const MatrixBase<DenseDerived> &a, const SparseMatrixBase<SparseDerived> &b)
^
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/RcppEigen/include/Eigen/src/SparseCore/SparseCwiseBinaryOp.h:719:1: note: candidate template ignored: could not match 'const SparseMatrixBase<SparseDerived>' against 'const int'
operator-(const SparseMatrixBase<SparseDerived> &a, const MatrixBase<DenseDerived> &b)
^
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/stan/math/prim/core/operator_subtraction.hpp:39:31: note: candidate template ignored: could not match 'const std::complex<U>' against 'const int'
inline complex_return_t<U, V> operator-(const std::complex<U>& x,
                              ^
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/stan/math/prim/core/operator_subtraction.hpp:54:31: note: candidate template ignored: could not match 'const std::complex<U>' against 'const int'
inline complex_return_t<U, V> operator-(const std::complex<U>& x, const V& y) {
                              ^
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/stan/math/prim/core/operator_subtraction.hpp:68:31: note: candidate template ignored: could not match 'complex' against 'MatrixWrapper'
inline complex_return_t<U, V> operator-(const U& x, const std::complex<V>& y) {
                              ^
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/stan/math/prim/core/operator_minus.hpp:18:24: note: candidate function template not viable: requires single argument 'x', but 2 arguments were provided
inline std::complex<U> operator-(const std::complex<U>& x) {
                       ^
In file included from stanExports_compare_crossreactivity_breadth.cc:5:
In file included from ./stanExports_compare_crossreactivity_breadth.h:20:
In file included from /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/rstan/include/rstan/rstaninc.hpp:4:
In file included from /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/rstan/include/rstan/stan_fit.hpp:43:
In file included from /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/src/stan/io/dump.hpp:10:
In file included from /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/stan/math/prim.hpp:14:
In file included from /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/stan/math/prim/fun.hpp:156:
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/stan/math/prim/fun/lb_constrain.hpp:67:12: error: no viable conversion from returned value of type 'Eigen::Map<const Eigen::Matrix<double, -1, 1>>' to function return type 'return_type_t<Map<const Matrix<double, -1, 1, 0, -1, 1>, 0, Stride<0, 0>>, double>' (aka 'double')
    return identity_constrain(x, lp);
           ^~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/stan/math/prim/fun/lub_constrain.hpp:110:12: note: in instantiation of function template specialization 'stan::math::lb_constrain<Eigen::Map<const Eigen::Matrix<double, -1, 1>>, double, double>' requested here
    return lb_constrain(x, lb, lp);
           ^
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/src/stan/io/reader.hpp:1531:24: note: in instantiation of function template specialization 'stan::math::lub_constrain<Eigen::Map<const Eigen::Matrix<double, -1, 1>>, double, int, double>' requested here
    return stan::math::lub_constrain(vector(m), lb, ub, lp);
                       ^
./stanExports_compare_crossreactivity_breadth.h:429:14: note: in instantiation of function template specialization 'model_compare_crossreactivity_breadth_namespace::model_compare_crossreactivity_breadth::log_prob<false, false, double>' requested here
      return log_prob<propto,jacobian,T_>(vec_params_r, vec_params_i, pstream);
             ^
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/src/stan/model/model_base_crtp.hpp:90:50: note: in instantiation of function template specialization 'model_compare_crossreactivity_breadth_namespace::model_compare_crossreactivity_breadth::log_prob<false, false, double>' requested here
    return static_cast<const M*>(this)->template log_prob<false, false, double>(
                                                 ^
./stanExports_compare_crossreactivity_breadth.h:115:5: note: in instantiation of member function 'stan::model::model_base_crtp<model_compare_crossreactivity_breadth_namespace::model_compare_crossreactivity_breadth>::log_prob' requested here
    model_compare_crossreactivity_breadth(stan::io::var_context& context__,
    ^
In file included from stanExports_compare_crossreactivity_breadth.cc:5:
In file included from ./stanExports_compare_crossreactivity_breadth.h:20:
In file included from /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/rstan/include/rstan/rstaninc.hpp:4:
In file included from /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/rstan/include/rstan/stan_fit.hpp:43:
In file included from /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/src/stan/io/dump.hpp:10:
In file included from /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/stan/math/prim.hpp:14:
In file included from /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/stan/math/prim/fun.hpp:156:
/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/StanHeaders/include/stan/math/prim/fun/lb_constrain.hpp:69:6: error: invalid operands to binary expression ('double' and 'const Eigen::Map<const Eigen::Matrix<double, -1, 1>>')
  lp += x;
  ~~ ^  ~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
80 warnings and 20 errors generated.
make: *** [stanExports_compare_crossreactivity_breadth.o] Error 1
ERROR: compilation failed for package ‘titertools’
* removing ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/titertools’
Warning message:
In i.p(...) :
  installation of package ‘/var/folders/nt/mr_2jqmj6312v1v38d18yzgm0000gn/T//RtmpaODMtf/file75e27e2debb0/titertools_0.0.0.9002.tar.gz’ had non-zero exit status
@Cameron-Nguyen1
Copy link

Also experiencing an issue with installation on R 4.2.2.
make: *** [C:/PROGRA1/R/R-421.2/etc/x64/Makeconf:258: stanExports_compare_crossreactivity_breadth.o] Error 1
ERROR: compilation failed for package 'titertools'

  • removing 'C:/Users/came/AppData/Local/R/win-library/4.2/titertools

@shwilks
Copy link
Owner

shwilks commented Dec 6, 2023

I just uploaded some changes in version 0.0.0.9003, do you both still have problems installing it? (it compiles ok for me)

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

3 participants