Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pablobarbera committed Nov 3, 2015
1 parent d4fd738 commit bb204de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions instaR/R/getFollows.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ getFollows <- function(username, token, userid=NULL, verbose=TRUE){
## retrying 3 times if error was found
error <- 0
while (is.null(content$meta) | content$meta != 200){
messsage("Error!")
message("Error!")
Sys.sleep(0.5)
error <- error + 1
content <- callAPI(url, token)
Expand All @@ -67,12 +67,12 @@ getFollows <- function(username, token, userid=NULL, verbose=TRUE){

content <- callAPI(content$pagination['next_url'], token)
l <- l + length(content$data)
if (length(content$data)>0){ messsage(l, " follows")}
if (length(content$data)>0){ message(l, " follows")}

## retrying 3 times if error was found
error <- 0
while (is.null(content$meta) | content$meta != 200){
messsage("Error!")
message("Error!")
Sys.sleep(0.5)
error <- error + 1
content <- callAPI(url, token)
Expand Down

0 comments on commit bb204de

Please sign in to comment.