Как установить пакет «plyr» в R версии 4.4?Linux

Ответить
Anonymous
 Как установить пакет «plyr» в R версии 4.4?

Сообщение Anonymous »

После обновления R до версии 4.4 большинство пакетов исчезло, и мне нужно их переустановить. Теперь у меня возникли проблемы с загрузкой пакета «plyr», хотя на страницах github написано, что текущий статус пакета «plyr» устарел, мне нужно установить «plyr», прежде чем я смогу установить пакет phyoseq. Однако, когда я пытаюсь, я получаю следующую ошибку. Кто-нибудь знает, как я могу решить эту проблему?
> install.packages("plyr")
Installing package into ‘/home/sskoldas/R/x86_64-pc-linux-gnu-library/4.4’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib ... 8.9.tar.gz'
Content type 'application/x-gzip' length 401488 bytes (392 KB)
==================================================
downloaded 392 KB

* installing *source* package ‘plyr’ ...
** package ‘plyr’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
using C++ compiler: ‘g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I'/usr/local/lib/R/site-library/Rcpp/include' -fpic -g -O2 -ffile-prefix-map=/build/r-base-H8urij/r-base-4.4.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -c RcppExports.cpp -o RcppExports.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 RcppExports.cpp:4:
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/iostream/Rstreambuf.h: In member function ‘std::streamsize Rcpp::Rstreambuf::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::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 RcppExports.cpp:4:
/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:19: 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: RcppExports.o] Error 1
ERROR: compilation failed for package ‘plyr’
* removing ‘/home/sskoldas/R/x86_64-pc-linux-gnu-library/4.4/plyr’
Warning in install.packages :
installation of package ‘plyr’ had non-zero exit status

The downloaded source packages are in
‘/tmp/RtmpWy0Zao/downloaded_packages’


Подробнее здесь: https://stackoverflow.com/questions/784 ... ersion-4-4
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Linux»