install.packages('dplyr') fails on new project

I created a new project for a shared class project. Dplyr will not install.

Project: https://rstudio.cloud/spaces/55862/project/1021189

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: *** [mutate.o] Error 4
/opt/R/3.6.0/lib/R/etc/Makeconf:176: recipe for target 'mutate.o' failed
ERROR: compilation failed for package ‘dplyr’

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

This happens from time to time when a new version of dplyr is out, the reason is that dplyr requires more than 1GB of memory to compile (the current RStudio Cloud memory limit), the way RStudio Cloud addresses this issue is by caching precompiled binaries of the packages but it could take some time for the cache to update to the current dplyr version.

1 Like

Thank you so much for the quick respone. Is there a way to install the previous version? My class has a project due and we have a time constraint.

Not that I'm aware of but if you have a previous base project with dplyr already installed they can make a copy.

Hi there. We're working on getting the updated version of dplyr built and cached. In the mean time, you can install the archived version using the remotes package:

remotes::install_version('dplyr', '0.8.3', repos = 'https://demo.rstudiopm.com/cran/__linux__/xenial/latest')
2 Likes

Thank you Andy. That worked.

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