R package of generic neural network tools