djvanderlaan / lvec

Handling larger than memory vectors in R - core package
9 stars 1 forks source link

back on CRAN #17

Open talegari opened 1 month ago

talegari commented 1 month ago

Hey @djvanderlaan,

Looks like the package has been off CRAN since 2023-08-10 as issues were not corrected in time. Let me know if this project will be maintained in future. Happy to help you in my capacity too!

talegari commented 1 month ago

In addititon to the above, I am not able to compile the github version using C++ compiler: ‘g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0’ using C++11

Exact error is here:

* installing *source* package ‘lvec’ ...
** using staged installation
** libs
using C++ compiler: ‘g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0’
using C++11
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I'/home/dattachidambara/R/x86_64-pc-linux-gnu-library/4.4/BH/include' -I'/usr/local/lib/R/site-library/Rcpp/include'     -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-Kaw86j/r-base-4.4.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2   -c as_lvec.cpp -o as_lvec.o
In file included from /usr/local/lib/R/site-library/Rcpp/include/Rcpp/routines.h:26,
                 from /usr/local/lib/R/site-library/Rcpp/include/RcppCommon.h:128,
                 from /usr/local/lib/R/site-library/Rcpp/include/Rcpp.h:27,
                 from ../inst/include/cppr.h:4,
                 from ../inst/include/lvec_interface.h:4,
                 from r_export.h:1,
                 from as_lvec.cpp:1:
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/iostream/Rstreambuf.h: In member function ‘std::streamsize Rcpp::Rstreambuf<OUTPUT>::xsputn(const char*, std::streamsize) [with bool OUTPUT = true; std::streamsize = long int]’:
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:53:20: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 2 has type ‘std::streamsize’ {aka ‘long int’} [-Wformat=]
   53 |         Rprintf("%.*s", num, s);
      |                  ~~^~   ~~~
      |                    |    |
      |                    int  std::streamsize {aka long int}
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/iostream/Rstreambuf.h: In member function ‘std::streamsize Rcpp::Rstreambuf<OUTPUT>::xsputn(const char*, std::streamsize) [with bool OUTPUT = false; std::streamsize = long int]’:
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/iostream/Rstreambuf.h:57:21: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 2 has type ‘std::streamsize’ {aka ‘long int’} [-Wformat=]
   57 |         REprintf("%.*s", num, s);
      |                   ~~^~   ~~~
      |                     |    |
      |                     int  std::streamsize {aka long int}
In file included from /usr/local/lib/R/site-library/Rcpp/include/RcppCommon.h:181,
                 from /usr/local/lib/R/site-library/Rcpp/include/Rcpp.h:27,
                 from ../inst/include/cppr.h:4,
                 from ../inst/include/lvec_interface.h:4,
                 from r_export.h:1,
                 from as_lvec.cpp:1:
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/print.h: In function ‘void Rcpp::warningcall(SEXP, const string&)’:
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/print.h:30:35: error: format not a string literal and no format arguments [-Werror=format-security]
   30 |     Rf_warningcall(call, s.c_str());
      |                                   ^
cc1plus: some warnings being treated as errors
make: *** [/usr/lib/R/etc/Makeconf:204: as_lvec.o] Error 1
ERROR: compilation failed for package ‘lvec’