安装卡在g ++ -std = gnu ++ 11的R包?

时间:2020-01-18 23:46:04

标签: r

我正在Ubuntu 18.04中安装R软件包readr,并停留在下一行。它没有报告任何错误,但是已经被卡住了一个多小时。

install.packages("readr", dependencies=T)
* installing *source* package ‘rprojroot’ ...
** package ‘rprojroot’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (rprojroot)
* installing *source* package ‘readr’ ...
** package ‘readr’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/BH/include"  -I. -Ircon -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-t3diwe/r-base-3.6.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c Collector.cpp -o Collector.o

一些建议?还是其他出行方式?

1 个答案:

答案 0 :(得分:1)

一种选择是从Shell脚本或直接从终端进行二进制安装

add-apt-repository -y ppa:marutter/c2d4u3.5
apt-get -y update; 
apt-get install -y r-cran-readr 
#or get most of the packages of tidyverse
apt-get install -y r-cran-tidyverse
相关问题