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

installation error #31

Open
sandyplus opened this issue Apr 26, 2023 · 4 comments
Open

installation error #31

sandyplus opened this issue Apr 26, 2023 · 4 comments

Comments

@sandyplus
Copy link

Issues are meant to report bugs or request features. If you have questions about how to correctly use this package, please don't use the issue system. Such questions can be asked on stackoverflow https://stackoverflow.com/ or the RStudio community https://community.rstudio.com/. If you are not sure where to go, please try https://stackoverflow.com/ first.

Issues must contain reproducible code examples. Please use the reprex package to create your example (see here: http://reprex.tidyverse.org/). Issues without reprex may be closed without comment.

Please delete these instructions after you have read them.


I have successfully updated Rcpp, but I am still unable to install gridtext.

> install.packages("gridtext")
Installing package into ‘/mnt/Data_disk/biosoft/R_library’
(as ‘lib’ is unspecified)
trying URL 'https://mirrors.e-ducation.cn/CRAN/src/contrib/gridtext_0.1.5.tar.gz'
Content type 'application/x-gzip' length 386571 bytes (377 KB)
==================================================
downloaded 377 KB

* installing *source* package ‘gridtext’ ...
** package ‘gridtext’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
g++ -m64 -std=gnu++11 -I"/usr/include/R" -DNDEBUG  -I"/mnt/Data_disk/biosoft/R_library/Rcpp/include" -I/usr/local/include  -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic  -c RcppExports.cpp -o RcppExports.o
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h: In member function ‘void GridRenderer::raster(Rcpp::RObject, Length, Length, Length, Length, bool, const GraphicsContext&)’:
grid-renderer.h:61:94: error: no matching function for call to ‘Rcpp::Vector<10, Rcpp::PreserveStorage>::Vector(int, bool&, const GraphicsContext&)’
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
grid-renderer.h:61:94: note: candidates are:
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:240:5: note: Rcpp::Vector<RTYPE, StoragePolicy>::Vector(std::initializer_list<typename Rcpp::traits::init_type<RTYPE>::type>) [with int RTYPE = 10; StoragePolicy = Rcpp::PreserveStorage; typename Rcpp::traits::init_type<RTYPE>::type = bool]
     Vector( std::initializer_list<init_type> list ) {
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:240:5: note:   candidate expects 1 argument, 3 provided
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:232:5: note: template<class InputIterator, class Func, class T> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(InputIterator, InputIterator, Func, T, typename Rcpp::traits::enable_if<Rcpp::traits::is_arithmetic<T>::value, void>::type*)
     Vector( InputIterator first, InputIterator last, Func func, T n,
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:232:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   deduced conflicting types for parameter ‘InputIterator’ (‘int’ and ‘bool’)
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:225:5: note: template<class InputIterator, class Func> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(InputIterator, InputIterator, Func)
     Vector( InputIterator first, InputIterator last, Func func) {
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:225:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   deduced conflicting types for parameter ‘InputIterator’ (‘int’ and ‘bool’)
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:217:5: note: template<class InputIterator, class T> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(InputIterator, InputIterator, T, typename Rcpp::traits::enable_if<Rcpp::traits::is_arithmetic<T>::value, void>::type*)
     Vector( InputIterator first, InputIterator last, T n,
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:217:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   deduced conflicting types for parameter ‘InputIterator’ (‘int’ and ‘bool’)
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:210:5: note: template<class InputIterator> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(InputIterator, InputIterator)
     Vector( InputIterator first, InputIterator last){
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:210:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   deduced conflicting types for parameter ‘InputIterator’ (‘int’ and ‘bool’)
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:201:5: note: template<class T, class U1, class U2, class U3> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const T&, Rcpp::Vector<RTYPE, StoragePolicy>::stored_type (*)(U1, U2, U3), const U1&, const U2&, const U3&, typename Rcpp::traits::enable_if<Rcpp::traits::is_arithmetic<T>::value, void>::type*)
     Vector( const T& siz, stored_type (*gen)(U1,U2,U3), const U1& u1, const U2& u2, const U3& u3,
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:201:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   mismatched types ‘Rcpp::Vector<10, Rcpp::PreserveStorage>::stored_type (*)(U1, U2, U3)’ and ‘bool’
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:192:5: note: template<class T, class U1, class U2> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const T&, Rcpp::Vector<RTYPE, StoragePolicy>::stored_type (*)(U1, U2), const U1&, const U2&, typename Rcpp::traits::enable_if<Rcpp::traits::is_arithmetic<T>::value, void>::type*)
     Vector( const T& siz, stored_type (*gen)(U1,U2), const U1& u1, const U2& u2,
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:192:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   mismatched types ‘Rcpp::Vector<10, Rcpp::PreserveStorage>::stored_type (*)(U1, U2)’ and ‘bool’
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:183:5: note: template<class T, class U1> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const T&, Rcpp::Vector<RTYPE, StoragePolicy>::stored_type (*)(U1), const U1&, typename Rcpp::traits::enable_if<Rcpp::traits::is_arithmetic<T>::value, void>::type*)
     Vector( const T& siz, stored_type (*gen)(U1), const U1& u1,
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:183:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   mismatched types ‘Rcpp::Vector<10, Rcpp::PreserveStorage>::stored_type (*)(U1)’ and ‘bool’
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:176:5: note: template<bool NA, class T> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const Rcpp::sugar::SingleLogicalResult<NA, T>&)
     Vector( const sugar::SingleLogicalResult<NA,T>& obj ) {
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:176:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   mismatched types ‘const Rcpp::sugar::SingleLogicalResult<NA, T>’ and ‘int’
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:168:5: note: template<class T, class U> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const T&, const U&, typename Rcpp::traits::enable_if<Rcpp::traits::is_arithmetic<T>::value, void>::type*)
     Vector( const T& size, const U& u,
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:168:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   mismatched types ‘typename Rcpp::traits::enable_if<Rcpp::traits::is_arithmetic<T>::value, void>::type*’ and ‘Rcpp::Vector<19>’
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:162:5: note: template<bool NA, class VEC> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const Rcpp::VectorBase<RTYPE, NA_, T>&)
     Vector( const VectorBase<RTYPE,NA,VEC>& other ) {
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:162:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   mismatched types ‘const Rcpp::VectorBase<10, LHS_NA, LHS_T>’ and ‘int’
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:152:5: note: template<class U> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const Rcpp::Dimension&, const U&)
     Vector( const Dimension& dims, const U& u) {
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:152:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   candidate expects 2 arguments, 3 provided
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:145:5: note: template<class T> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(T, typename Rcpp::traits::enable_if<(Rcpp::traits::is_bool<T>::value && (RTYPE == 10)), void>::type*)
     Vector(T value,
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:145:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   mismatched types ‘typename Rcpp::traits::enable_if<(Rcpp::traits::is_bool<T>::value && (10 == 10)), void>::type*’ and ‘bool’
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:133:5: note: Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const Rcpp::Dimension&) [with int RTYPE = 10; StoragePolicy = Rcpp::PreserveStorage]
     Vector( const Dimension& dims) {
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:133:5: note:   candidate expects 1 argument, 3 provided
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:128:5: note: Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const int&) [with int RTYPE = 10; StoragePolicy = Rcpp::PreserveStorage]
     Vector( const int& size ) {
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:128:5: note:   candidate expects 1 argument, 3 provided
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:122:5: note: template<class T> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(T, typename Rcpp::traits::enable_if<Rcpp::traits::is_arithmetic<T>::value, void>::type*)
     Vector(T size,
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:122:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   mismatched types ‘typename Rcpp::traits::enable_if<Rcpp::traits::is_arithmetic<T>::value, void>::type*’ and ‘bool’
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:113:5: note: template<class T> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const T&, Rcpp::Vector<RTYPE, StoragePolicy>::stored_type (*)(), typename Rcpp::traits::enable_if<Rcpp::traits::is_arithmetic<T>::value, void>::type*)
     Vector( const T& siz, stored_type (*gen)(void),
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:113:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   cannot convert ‘interpolate’ (type ‘bool’) to type ‘Rcpp::Vector<10, Rcpp::PreserveStorage>::stored_type (*)() {aka int (*)()}’
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:107:5: note: Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const char*) [with int RTYPE = 10; StoragePolicy = Rcpp::PreserveStorage]
     Vector( const char* st ) {
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:107:5: note:   candidate expects 1 argument, 3 provided
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:101:5: note: Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const string&) [with int RTYPE = 10; StoragePolicy = Rcpp::PreserveStorage; std::string = std::basic_string<char>]
     Vector( const std::string& st ){
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:101:5: note:   candidate expects 1 argument, 3 provided
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:94:5: note: Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const int&, const stored_type&) [with int RTYPE = 10; StoragePolicy = Rcpp::PreserveStorage; Rcpp::Vector<RTYPE, StoragePolicy>::stored_type = int]
     Vector( const int& size, const stored_type& u) {
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:94:5: note:   candidate expects 2 arguments, 3 provided
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:87:5: note: template<class T> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const T&, const stored_type&, typename Rcpp::traits::enable_if<Rcpp::traits::is_arithmetic<T>::value, void>::type*)
     Vector( const T& size, const stored_type& u,
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:87:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   mismatched types ‘typename Rcpp::traits::enable_if<Rcpp::traits::is_arithmetic<T>::value, void>::type*’ and ‘Rcpp::Vector<19>’
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:82:14: note: Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const Rcpp::no_init_vector&) [with int RTYPE = 10; StoragePolicy = Rcpp::PreserveStorage]
     explicit Vector( const no_init_vector& obj) {
              ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:82:14: note:   candidate expects 1 argument, 3 provided
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:77:5: note: template<class Proxy> Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const Rcpp::GenericProxy<Proxy>&)
     Vector( const GenericProxy<Proxy>& proxy ){
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:77:5: note:   template argument deduction/substitution failed:
In file included from gridtext_types.h:12:0,
                 from RcppExports.cpp:4:
grid-renderer.h:61:94: note:   mismatched types ‘const Rcpp::GenericProxy<Proxy>’ and ‘int’
           NumericVector(1, width), NumericVector(1, height), LogicalVector(1, interpolate, gp)
                                                                                              ^
In file included from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/Vector.h:52:0,
                 from /mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp.h:40,
                 from layout.h:4,
                 from gridtext_types.h:11,
                 from RcppExports.cpp:4:
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:71:5: note: Rcpp::Vector<RTYPE, StoragePolicy>::Vector(SEXP) [with int RTYPE = 10; StoragePolicy = Rcpp::PreserveStorage; SEXP = SEXPREC*]
     Vector( SEXP x ) {
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:71:5: note:   candidate expects 1 argument, 3 provided
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:63:5: note: Rcpp::Vector<RTYPE, StoragePolicy>::Vector(const Rcpp::Vector<RTYPE, StoragePolicy>&) [with int RTYPE = 10; StoragePolicy = Rcpp::PreserveStorage]
     Vector( const Vector& other){
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:63:5: note:   candidate expects 1 argument, 3 provided
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:55:5: note: Rcpp::Vector<RTYPE, StoragePolicy>::Vector() [with int RTYPE = 10; StoragePolicy = Rcpp::PreserveStorage]
     Vector() {
     ^
/mnt/Data_disk/biosoft/R_library/Rcpp/include/Rcpp/vector/Vector.h:55:5: note:   candidate expects 0 arguments, 3 provided
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘gridtext’
* removing ‘/mnt/Data_disk/biosoft/R_library/gridtext’

The downloaded source packages are in
	‘/tmp/RtmpfzMHVu/downloaded_packages’
Warning message:
In install.packages("gridtext") :
  installation of package ‘gridtext’ had non-zero exit status
>

Here is my session info:

> sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS Linux 7 (Core)

Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

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

loaded via a namespace (and not attached):
[1] compiler_3.6.0 tools_3.6.0
@dansmith01
Copy link

I'm getting the same error as @sandyplus when installing from either CRAN or GitHub.

> sessionInfo()
R version 4.3.0 (2023-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Server 7.9 (Maipo)

Matrix products: default
BLAS:   /RH6cmmr/RH7/opt/R-4.3.0/lib/libRblas.so
LAPACK: /RH6cmmr/RH7/opt/R-4.3.0/lib/libRlapack.so;  LAPACK version 3.11.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

time zone: America/Chicago
tzcode source: system (glibc)

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

loaded via a namespace (and not attached):
[1] compiler_4.3.0 tools_4.3.0    tcltk_4.3.0

@clauswilke
Copy link
Collaborator

Historically every time there was a report of compilation errors the reason was an extremely old C++ compiler. See e.g. #7. Red Hat Enterprise Linux Server 7.9 ships GCC 4.8.x by default, which is almost ten years old and has poor support for more recent C++ features. If you're using this compiler there is nothing we can do.

@dansmith01
Copy link

@clauswilke - you were right. Upgrading gcc from 4.8.5 to 7.3.1 fixed the issue.

@sandyplus
Copy link
Author

@dansmith01 I solved it too. Updating gcc to the latest version fixed the error.

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