Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tyler rinker
committed
Feb 16, 2013
1 parent
47d9791
commit 5ab74e6
Showing
16 changed files
with
193 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
^\.Rproj\.user$ | ||
^.*\.Rproj$ | ||
.Rbuildignore | ||
maintenance.R | ||
.gitignore | ||
staticdocs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
export(email) | ||
export(cell2email) | ||
import(rJython) | ||
export(gmail) | ||
export(scrape.cell) | ||
import(RCurl) | ||
import(rJava) | ||
import(rjson) | ||
import(rJython) | ||
import(XML) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.onLoad <- function(libname = find.package("gmailR"), | ||
pkgname = "gmailR") { | ||
.onLoad <- function(libname = find.package("gmailR"), pkgname = "gmailR") { | ||
data(cell.ext, package = "gmailR") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
citHeader("To cite gmailR in publications, please use:") | ||
|
||
|
||
citEntry(entry = "manual", | ||
title = "{gmailR}: gmail for {R}", | ||
author = "Tyler W. Rinker", | ||
organization = "University at Buffalo/SUNY", | ||
address = "Buffalo, New York", | ||
note = "version 0.1.0", | ||
year = "2013", | ||
textVersion = paste("Rinker, T. W. (2013).", | ||
"gmailR: gmail for R.", | ||
"version 0.1.0. University at Buffalo. Buffalo, New York.") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#======================== | ||
#update data for cell | ||
#======================== | ||
cell.ext <- scrape.cell() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,24 @@ | ||
\name{cell2email} | ||
\alias{cell2email} | ||
%- Also NEED an '\alias' for EACH other topic documented here. | ||
\title{ | ||
Convert a Cell Phone Number to an Email Address | ||
} | ||
\description{ | ||
Convert a cell number to an email address. | ||
} | ||
\title{Generate an Email from a Cell Phone Number} | ||
\usage{ | ||
cell2email(cell.number, carrier, omit.old = TRUE) | ||
cell2email(cell.number, carrier = NULL, omit.old = TRUE) | ||
} | ||
%- maybe also 'usage' for other objects documented here. | ||
\arguments{ | ||
\item{cell.number}{ | ||
10 digit cell phone number | ||
} | ||
\item{carrier}{ | ||
Cell phone carrier | ||
} | ||
\item{omit.old}{ | ||
logical. Should the old_us_can of the last column of cell.ext data set be used. | ||
\item{cell.number}{The 10 digits number of the cell | ||
you're trying to send a text to.} | ||
\item{carrier}{The name of the carrier. If NULL | ||
interactive selection of a carrier is used.} | ||
\item{omit.old}{logical. If TRUE removes all the old | ||
Canadian carriers from the list.} | ||
} | ||
\description{ | ||
Generates an email adress based on cell number nad | ||
carrier. | ||
} | ||
\examples{ | ||
cell2email(5555555555, "Sprint") | ||
cell2email(5555555555, "seprint") | ||
cell2email("555-555-5555") | ||
} | ||
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
\name{gmail} | ||
\alias{gmail} | ||
\title{Email With Attachments} | ||
\usage{ | ||
gmail(to, password, subject = "R message", | ||
message = "EOM", from = NULL, attachment = NULL, | ||
server = "smtp.gmail.com:587", username = NULL, | ||
confirmBeforeSend = FALSE, clear.username = FALSE) | ||
} | ||
\arguments{ | ||
\item{to}{The recipient's email address.} | ||
\item{password}{Yor password.} | ||
\item{subject}{The message (default is \code{R | ||
message}).} | ||
\item{message}{The subject line (default is \code{EOM}).} | ||
\item{from}{Your email address (gmailR will try to store | ||
this information for you).} | ||
\item{attachment}{Path to an attachment you wish to | ||
include.} | ||
\item{server}{email server.} | ||
\item{username}{Your email address (gmailR will try to | ||
store this information for you).} | ||
\item{confirmBeforeSend}{logical. If TRUE gmail will | ||
confirm before sending.} | ||
\item{clear.username}{logical. If TRUE clears the stored | ||
username.} | ||
} | ||
\description{ | ||
Send emails (including gmails) with attachments from | ||
within R. | ||
} | ||
\examples{ | ||
\dontrun{ | ||
gmail(to=c("bob@gmail.com", "janr@hotmail.com"), password = "password", | ||
attachment="path/to/file.pdf") | ||
gmail(to=cell2email(5555555555, "sprint"), password = "password") | ||
} | ||
} | ||
\author{ | ||
Tyler Rinker<tyler.rinker@gmail.com> and Daniel Malter | ||
} | ||
\references{ | ||
\url{http://r.789695.n4.nabble.com/Email-out-of-R-code-td3530671.html} | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
\name{scrape.cell} | ||
\alias{scrape.cell} | ||
\title{Scrape Cell Phone Extensions} | ||
\usage{ | ||
scrape.cell(URL = "http://www.emailtextmessages.com/") | ||
} | ||
\arguments{ | ||
\item{URL}{The URL of the cell phone extension website to | ||
scrape from.} | ||
} | ||
\description{ | ||
Grabs cell phone extensions from | ||
http://www.emailtextmessages.com/ | ||
} | ||
\examples{ | ||
\dontrun{ | ||
scrape.cell() | ||
} | ||
} | ||
|