I obviously cannot verify this using data of your scale, but I can reproduce your errors using the formula interface of each function:
require(bigmemory) m <- matrix(sample(0:1,5000,replace = TRUE),1000,5) colnames(m) <- paste("V",1:5,sep = "") bm <- as.big.matrix(m,type = "integer") require(gbm) require(randomForest)
Do not use the formula interface for randomForest is a fairly common tip for large data sets; it can be very ineffective. If you read ?gbm , you will see a similar recommendation directing you to gbm.fit for big data.
joran source share