You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure that the "cmds" file is not in the vector of files being read.
spam_docs<- dir(spam_path, full.names=TRUE)
all_spam<- sapply(spam_docs, function(p) get_msg(p))
#> Error in seq.default(which(text == "")[1] + 1, length(text), 1) : #> 'from' cannot be NA, NaN or infinite In addition: Warning message:#> In readLines(path) :#> incomplete final line found on './/03- Classification/data/spam/00136.faa39d8e816c70f23b4bb8758d8a74f0'spam_docs<- dir(spam_path, full.names=TRUE)
spam_docs<-spam_docs[which(basename(spam_docs) !="cmds")]
all_spam<- sapply(spam_docs, function(p) get_msg(p))
#> Warning message:#> In readLines(path) :#> incomplete final line found on './/03-Classification/data/spam/00136.faa39d8e816c70f23b4bb8758d8a74f0'
the code are running from Rstudio with R 3.3.0 under osx 10.11
issue 1:
line 48 in email_classify.R:
yintercept need to be put outside aes function , like this :
issue 2:
error occurs when reading msg by sapply at line 139-140 ..
here is the traceback
seems some file does not have a blank line
The text was updated successfully, but these errors were encountered: