Can't install readr package

package-installation

#1

I created a new workspace and tried installing the readr package but the installation process failed. Can anyone help?

> install.packages("readr")
Installing package into ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘assertthat’, ‘fansi’, ‘utf8’, ‘cli’, ‘crayon’, ‘pillar’, ‘rlang’, ‘pkgconfig’, ‘Rcpp’, ‘tibble’, ‘hms’, ‘R6’, ‘clipr’, ‘BH’

trying URL 'http://package-proxy/src/contrib/assertthat_0.2.0.tar.gz'
Content type 'application/x-tar' length 51102 bytes (49 KB)
==================================================
downloaded 49 KB

trying URL 'http://package-proxy/src/contrib/fansi_0.4.0.tar.gz'
Content type 'application/x-tar' length 226588 bytes (221 KB)
==================================================
downloaded 221 KB

trying URL 'http://package-proxy/src/contrib/utf8_1.1.4.tar.gz'
Content type 'application/x-tar' length 213423 bytes (208 KB)
==================================================
downloaded 208 KB

trying URL 'http://package-proxy/src/contrib/cli_1.0.1.tar.gz'
Content type 'application/x-tar' length 573847 bytes (560 KB)
==================================================
downloaded 560 KB

trying URL 'http://package-proxy/src/contrib/crayon_1.3.4.tar.gz'
Content type 'application/x-tar' length 747433 bytes (729 KB)
==================================================
downloaded 729 KB

trying URL 'http://package-proxy/src/contrib/pillar_1.3.0.tar.gz'
Content type 'application/x-tar' length 151355 bytes (147 KB)
==================================================
downloaded 147 KB

trying URL 'http://package-proxy/src/contrib/rlang_0.3.0.1.tar.gz'
Content type 'application/x-tar' length 1066807 bytes (1.0 MB)
==================================================
downloaded 1.0 MB

trying URL 'http://package-proxy/src/contrib/pkgconfig_2.0.2.tar.gz'
Content type 'application/x-tar' length 17471 bytes (17 KB)
==================================================
downloaded 17 KB

trying URL 'http://package-proxy/src/contrib/Rcpp_1.0.0.tar.gz'
Content type 'application/x-tar' length 4526215 bytes (4.3 MB)
==================================================
downloaded 4.3 MB

trying URL 'http://package-proxy/src/contrib/tibble_1.4.2.tar.gz'
Content type 'application/x-tar' length 230292 bytes (224 KB)
==================================================
downloaded 224 KB

trying URL 'http://package-proxy/src/contrib/hms_0.4.2.tar.gz'
Content type 'application/x-tar' length 54027 bytes (52 KB)
==================================================
downloaded 52 KB

trying URL 'http://package-proxy/src/contrib/R6_2.3.0.tar.gz'
Content type 'application/x-tar' length 55489 bytes (54 KB)
==================================================
downloaded 54 KB

trying URL 'http://package-proxy/src/contrib/clipr_0.4.1.tar.gz'
Content type 'application/x-tar' length 34231 bytes (33 KB)
==================================================
downloaded 33 KB

trying URL 'http://package-proxy/src/contrib/BH_1.66.0-1.tar.gz'
Content type 'application/x-tar' length 11252616 bytes (10.7 MB)
==================================================
downloaded 10.7 MB

trying URL 'http://cran.rstudio.org/src/contrib/readr_1.3.0.tar.gz'
Content type 'application/x-gzip' length 267009 bytes (260 KB)
==================================================
downloaded 260 KB

* installing *binary* package ‘assertthat’ ...
* DONE (assertthat)
* installing *binary* package ‘fansi’ ...
* DONE (fansi)
* installing *binary* package ‘utf8’ ...
* DONE (utf8)
* installing *binary* package ‘crayon’ ...
* DONE (crayon)
* installing *binary* package ‘rlang’ ...
* DONE (rlang)
* installing *binary* package ‘pkgconfig’ ...
* DONE (pkgconfig)
* installing *binary* package ‘Rcpp’ ...
* DONE (Rcpp)
* installing *binary* package ‘R6’ ...
* DONE (R6)
* installing *binary* package ‘clipr’ ...
* DONE (clipr)
* installing *binary* package ‘BH’ ...
* DONE (BH)
* installing *binary* package ‘cli’ ...
* DONE (cli)
* installing *binary* package ‘hms’ ...
* DONE (hms)
* installing *binary* package ‘pillar’ ...
* DONE (pillar)
* installing *binary* package ‘tibble’ ...
* DONE (tibble)
* installing *source* package ‘readr’ ...
** package ‘readr’ successfully unpacked and MD5 sums checked
** libs
g++  -I"/opt/R/3.5.0/lib/R/include" -DNDEBUG  -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5/BH/include" -I/usr/local/include  -I. -Ircon -fpic  -g -O2  -c Collector.cpp -o Collector.o
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
make: *** [Collector.o] Error 4
/opt/R/3.5.0/lib/R/etc/Makeconf:168: recipe for target 'Collector.o' failed
ERROR: compilation failed for package ‘readr’
* removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5/readr’
Warning in install.packages :
  installation of package ‘readr’ had non-zero exit status

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

#2

It looks like the fix for the compilation issues in readr has been released to CRAN and we need to re-cache it. I'll update here when that has happened.


#3

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.