Enquiry about h2o.deeplearning

Hi,
I am relatively new to R and programming,
From my understanding, the H2O package can train ANN models, I have some questions related to this package.

Is it superior in training deep learning models to other packages like caret?

Also, what is the difference between these two arguments nfolds, and train_samples_per_iteration, is one of them more important to determining the optimum hyperparameters than the other?