Developing an R package and addressing open questions in the MNIST application