# NOT RUN {
# Get all (global) options for the polmineR package
grep("polmineR", names(options()), value = TRUE)
# Get options that need to be set
getOption("polmineR.email")
getOption("polmineR.smtp_server")
getOption("polmineR.smtp_port")
# Sample options (let us imagine Donald Duck had a mail-account)
options("polmineR.email" = "donald.duck@duckmail.org")
options("polmineR.smtp_port" = "587")
options("polmineR.smtp_server" = "smtp.duckmail.org")
# This is how you send out results when options are set
# (Note: Mail servers that require authentication are not yet supported.)
# }
# NOT RUN {
y <- cooccurrences("REUTERS", query = "oil")
mail(y)
k <- kwic("REUTERS", query = "oil")
mail(k)
# }
Run the code above in your browser using DataLab