I get the following error message :
Error in \"if (reached.threshold < min.reached.threshold) {\" : missing value where TRUE/FALSE needed
I had a similar problem and solved it by setting the learningrate to a 100-fold smaller value.
learningrate