dplyr package fails to instal in Rstudio Cloud Project

https://rstudio.cloud/project/398040

I am trying to instal dplyr package in this project and keep receiving the following error message;-

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.

Which command are you running to install dplyr? If you are trying to compile it from source, it'll fail since it requires more than 1 Gb of RAM to do so. Each RStudio Cloud is limited to 1 Gb of RAM.

From the error message it looks like that is exactly what's happening.

1 Like

It was the basic install.packages() command. If that is the problem, how do I install the package otherwise, please?

To avoid this memory limit issue while installing packages they have them cached, I suspect that the newest version of dplyr hasn't make it to the cache yet so you just have to be a little patient until it does (I can't tell how long though).

2 Likes

Thanks very much, Andrés

I too have the same problem

readr, as well.

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.6.0/lib/R/etc/Makeconf:176: recipe for target 'Collector.o' failed
ERROR: compilation failed for package ‘readr’

  • removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.6/readr’
    Warning in install.packages :
    installation of package ‘readr’ had non-zero exit status

Both dplyr and readr packages are now installing fine. It appears to have been as per Andrés' suggestion regarding the need for a cache update.

IT still does not appear to be working, at least for 3.6.0. Neither dplyr or readr are installing; giving the same message.

Edit: In a fresh project they both install for 3.6.0.

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