I can’t install package caret in Rstudio.cloud

caret

#1

I can’t install package caret. Following errors are appeared:

  • installing source package ‘ddalpha’ ...
    ** package ‘ddalpha’ successfully unpacked and MD5 sums checked
    ** libs
    g++ -std=gnu++11 -I/opt/R/3.4.4/lib/R/include -DNDEBUG -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/BH/include" -I"/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/Rcpp/include" -I/usr/local/include -fpic -g -O2 -c AlphaProcedure.cpp -o AlphaProcedure.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: *** [AlphaProcedure.o] Error 4
    /opt/R/3.4.4/lib/R/etc/Makeconf:168: recipe for target 'AlphaProcedure.o' failed
    ERROR: compilation failed for package ‘ddalpha’
  • removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/ddalpha’
    Warning in install.packages :
    installation of package ‘ddalpha’ had non-zero exit status
    ERROR: dependency ‘ddalpha’ is not available for package ‘recipes’
  • removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/recipes’
    Warning in install.packages :
    installation of package ‘recipes’ had non-zero exit status
    ERROR: dependency ‘recipes’ is not available for package ‘caret’
  • removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.4/caret’
    Warning in install.packages :
    installation of package ‘caret’ had non-zero exit status

The downloaded source packages are in
‘/tmp/RtmpdwXZfw/downloaded_packages’

Please, help


#2

I just did a fresh RStudio cloud session and installed caret successfully.

A link to the project is below (there's no content, the only thing run was install.packages("caret", dependencies = TRUE):
https://rstudio.cloud/project/42168


#3

This is an indication that you have run out of memory:

What was going on in your session at the time of the failure?


I can't install packaged Xgboost