R package wrapping Mallet