R session error with randomForest

Hi,

I try to run a randomForest on 100000x5 dataset but it give me a "R Session Error". It works with 10000x5 dataset. Here is my example :

library(dplyr)
library(randomForest)

nb_val = 100000
rnorm(nb_val) %>% tibble(x1=., y=5.2*.+3, x2=rnorm(nb_val), x3=rnorm(nb_val), x4=rnorm(nb_val)) -> temp
mon_rf = randomForest(y~., data=temp)

Is it a memory problem or something else ?

Yes, it is running out of memory. Currently rstudio.cloud only has 1 GB of memory available to each project.