I am having the same problem referenced here when I try to install the current dev version from GitHub.
-I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5/Rcpp/include" -I/usr/local/include -fpic -g -O2 -c mutate.cpp -o mutate.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: *** [mutate.o] Error 4
/opt/R/3.5.0/lib/R/etc/Makeconf:168: recipe for target 'mutate.o' failed
ERROR: compilation failed for package ‘dplyr’
* removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5/dplyr’
* restoring previous ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5/dplyr’
Installation failed: Command failed (1)
@stevenolen you were able to solve the previous problem, would a similar solution help here?