Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

Commit

Permalink
document newlines/tabs in GrantBonus (closes #109)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeper committed Feb 27, 2016
1 parent d774fd9 commit e53c9ce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: MTurkR
Version: 0.7.0
Date: 2016-02-21
Version: 0.7.1
Date: 2016-02-27
Title: R Client for the MTurk Requester API
Authors@R: c(person("Thomas J.", "Leeper", role = c("aut", "cre"),
email = "thosjleeper@gmail.com"),
Expand Down
6 changes: 6 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# CHANGES TO MTurkR 0.8 #

## DOCUMENTATION ##

* Documentation now indicates that `GrantBonus()` allows the `reason` argument to contain newlines and tabs. (#109)

# CHANGES TO MTurkR 0.7 #

## SIGNIFICANT USER-VISIBLE CHANGES ##
Expand Down
6 changes: 3 additions & 3 deletions man/GrantBonus.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ GrantBonus(workers, assignments, amounts, reasons,
\item{workers}{A character string containing a WorkerId, or a vector of character strings containing multiple WorkerIds.}
\item{assignments}{A character string containing an AssignmentId for an assignment performed by that worker, or a vector of character strings containing the AssignmentId for an assignment performed by each of the workers specified in \code{workers}.}
\item{amounts}{A character string containing an amount (in U.S. Dollars) to bonus the worker(s), or a vector (of length equal to the number of workers) of character strings containing the amount to be paid to each worker.}
\item{reasons}{A character string containing a reason for bonusing the worker(s), or a vector (of length equal to the number of workers) of character strings containing the reason to bonus each worker. The reason is visible to each worker.}
\item{reasons}{A character string containing a reason for bonusing the worker(s), or a vector (of length equal to the number of workers) of character strings containing the reason to bonus each worker. The reason is visible to each worker and is sent via email. Newlines can be specified with \code{\\n} and tabs can be specified with \code{\\t} in the message body.}
\item{unique.request.token}{An optional character string, included only for advanced users. It can be used to prevent resending a bonus. A bonus will not be granted if a bonus was previously granted (within a short time window) using the same \code{unique.request.token}.}
\item{verbose}{Optionally print the results of the API request to the standard output. Default is taken from \code{getOption('MTurkR.verbose', TRUE)}.}
\item{...}{Additional arguments passed to \code{\link{request}}.}
Expand All @@ -38,7 +38,7 @@ A simple function to grant a bonus to one or more workers. The function is somew
a <- "A1RO9UEXAMPLE"
b <- "26XXH0JPPSI23H54YVG7BKLEXAMPLE"
c <- ".50"
d <- "Thanks for your great work on my HITs!"
d <- "Thanks for your great work on my HITs!\nHope to work with you, again!"
GrantBonus(workers=a, assignments=b, amounts=c, reasons=d)
}
\dontrun{
Expand All @@ -53,4 +53,4 @@ d <- "Thanks for your great work on my HITs!"
GrantBonus(workers=a, assignments=b, amounts=c, reasons=d)
}
}
\keyword{Workers}
\keyword{Workers}

0 comments on commit e53c9ce

Please sign in to comment.