Bagging tree model - R is taking way too long than it should

Hi there,

I am trying to run a bagging tree model command in R. This coding I believe is right as I have seen it everywhere and I don't get an error, but for some reason R is taking so long (I mean hours) for it to run and it does nothing. I have to force close R in order to do anything else, why is this the case? What can I do?

Can you please post a sample of your code?

set.seed(1)
bagged_trees_model <- randomForest(y = train.news$shares,
x = train.news[ ,-1],
mtry = ncol(train) - 1,
importance = T)