Hi,
I am trying to do random forest analysis for microbiome data in R but I am getting below error , could you please suggest how I can resolve it?
set.seed(123)
#run random forest
physeq.DNA.Close_5_Filtered_Classify <- randomForest(response~., data = rf.data, ntree = 200)
Error: protect(): protection stack overflow
Many thanks,
bioinfonext
Looks like this is a memory issue. Can you assign more memory to R (or Rstudio if that is what you are using)?
I am working on iMac R terminal and try to use below codes but not resolved the issue.
Many thanks
I also tried this;
env R_MAX_VSIZE=700Gb R
but still getting same error!
What is the size of the data file you are trying to use? While virtual memory can help in some instances it may not be able to avoid limitations of actual RAM you have available.