ggraph not installing

Been trying to install ggraph in Rstudio cloud but of no avail with error message "ggforce" had non-zero exit status (full message appended). Any help will be greatly appreciated!!

install.packages("ggraph")
Installing package into ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependency ‘ggforce’

trying URL 'http://cran.rstudio.org/src/contrib/ggforce_0.2.0.tar.gz'
Content type 'application/x-gzip' length 2286260 bytes (2.2 MB)
==================================================
downloaded 2.2 MB

trying URL 'http://package-proxy/src/contrib/ggraph_1.0.2.tar.gz'
Content type 'application/x-tar' length 3984697 bytes (3.8 MB)
==================================================
downloaded 3.8 MB

* installing *source* package ‘ggforce’ ...
** package ‘ggforce’ successfully unpacked and MD5 sums checked
** libs
g++  -I"/opt/R/3.5.2/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/RcppEigen/include" -I/usr/local/include   -fpic  -g -O2  -c RcppExports.cpp -o RcppExports.o
g++  -I"/opt/R/3.5.2/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/RcppEigen/include" -I/usr/local/include   -fpic  -g -O2  -c bSpline.cpp -o bSpline.o
g++  -I"/opt/R/3.5.2/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/RcppEigen/include" -I/usr/local/include   -fpic  -g -O2  -c bezier.cpp -o bezier.o
g++  -I"/opt/R/3.5.2/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/RcppEigen/include" -I/usr/local/include   -fpic  -g -O2  -c deBoor.cpp -o deBoor.o
g++  -I"/opt/R/3.5.2/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/RcppEigen/include" -I/usr/local/include   -fpic  -g -O2  -c ellipseEnclose.cpp -o ellipseEnclose.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: *** [ellipseEnclose.o] Error 4
/opt/R/3.5.2/lib/R/etc/Makeconf:171: recipe for target 'ellipseEnclose.o' failed
ERROR: compilation failed for package ‘ggforce’
* removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5/ggforce’
Warning in install.packages :
  installation of package ‘ggforce’ had non-zero exit status
* installing *binary* package ‘ggraph’ ...
* DONE (ggraph)

The downloaded source packages are in
	‘/tmp/RtmpDgM66y/downloaded_packages’
> library(ggraph)
Error: package or namespace load failed for ‘ggraph’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 there is no package called ‘ggforce’

I'm not 100% sure but I know ggforce had a massive update just a day or two ago. It's possible that messed up some of the ggraph dependencies. If that's the case you would need to wait for the ggraph creator to update.

Again, not 100% but based on the error it seems likely. Someone else may have a better response.

Yes, I have been following the ggforce update these couple of days and I suspected that also. I can do ggraph locally though.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.