Error to install pagedown on Rstudio Cloud - g++: internal compiler error: Killed (program cc1plus)

I am trying to install pagedown on Rstudio Cloud and I get the following error:

Installing package into ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
ERROR: dependency ‘websocket’ is not available for package ‘pagedown’

  • removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5/pagedown’
    installation of package ‘/tmp/RtmpsjhrAU/filec31a8a761f/pagedown_0.1.4.tar.gz’ had non-zero exit status

so I tried to install
and I got the following error:

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: *** [websocket.o] Error 4
ERROR: compilation failed for package ‘websocket’

  • removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5/websocket’

What I should do to fix it, considering that I am working on Rstudio Cloud?

As far as I can tell, websocket has not yet been released to CRAN. So my guess is you are using the development version of pagedown as well, since the CRAN version doesn't depend upon websocket.

For now, you should use the CRAN version of pagedown. Once they are both released to CRAN, we can cache websocket (it is failing due to exceeding the memory limit of 1 GB).

1 Like

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.