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

Commit

Permalink
Update request.R
Browse files Browse the repository at this point in the history
The current logical test gives a condition length error whenever any calls are made.
  • Loading branch information
seanchrismurphy committed Feb 9, 2016
1 parent 30c3ed7 commit a05a368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/request.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function(operation, GETparameters = NULL,
} else {
host <- "https://mechanicalturk.amazonaws.com/"
}
if(is.null(keypair) | keypair == "" | keypair == c("", "")) {
if(is.null(keypair) | keypair == "" | identical(keypair, c("", ""))) {
g <- getOption("MTurkR.keypair")
if (!is.null(g)) {
keypair <- g
Expand Down

0 comments on commit a05a368

Please sign in to comment.