rstudiocloud ranger installation fails

This seems to be a compiler error - I would be grateful for concrete advice how to fix this!

The following error shows when trying to install ranger:

RUN:

- install.packages("ranger")
- devtools::install_github("imbs-hl/ranger")

STACKTRACE:

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: *** [DataSparse.o] Error 4

/opt/R/3.5.2/lib/R/etc/Makeconf:171: recipe for target 'DataSparse.o' failed

ERROR: compilation failed for package ‘ranger’

* removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/3.5/ranger’

Warning in install.packages :

installation of package ‘ranger’ had non-zero exit status

That error is typical when the memory limit of 1 GB is exceeded.

In a new project I was able to successfully install the ranger package. What else had you done in your project prior to the error?

I didn't do much except installing a few packages necessary for machine learning like caret, gbm, randomForests, xgboost. And dplyr and tidyverse of course.
But do these occupy so much in memory?
So can I solve it by not loading anything and then try to install?

Installing packages shouldn't occupy much memory. library() might, if the package automatically loads a dataset, I suppose.

What happens when it is the first package you install in a new project?

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.