try Naive Bayes on R for classify spam on library dataset