Skip to content

Commit

Permalink
v0.5 CRAN ready
Browse files Browse the repository at this point in the history
  • Loading branch information
pablobarbera committed Jan 9, 2015
1 parent c6e335a commit 24c7ac1
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 5 deletions.
Binary file modified Rfacebook-manual.pdf
Binary file not shown.
3 changes: 2 additions & 1 deletion Rfacebook/DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ Maintainer: Pablo Barbera <pablo.barbera@nyu.edu>
Depends:
R (>= 2.12.0),
httr,
rjson
rjson,
httpuv
License: GPL-2
1 change: 1 addition & 0 deletions Rfacebook/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ export(getUsers)
export(searchFacebook)
export(searchPages)
export(updateStatus)
import(httpuv)
import(httr)
import(rjson)
2 changes: 1 addition & 1 deletion Rfacebook/R/Rfacebook-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
#' @aliases Rfacebook
#' @docType package
#' @author Pablo Barbera \email{pablo.barbera@@nyu.edu}
#' @import httr rjson
#' @import httr rjson httpuv
NULL

1 change: 0 additions & 1 deletion Rfacebook/R/fbOAuth.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@

fbOAuth <- function(app_id, app_secret, extended_permissions=TRUE)
{
require(httpuv)
## getting callback URL
full_url <- oauth_callback()
full_url <- gsub("(.*localhost:[0-9]{1,5}/).*", x=full_url, replacement="\\1")
Expand Down
3 changes: 2 additions & 1 deletion Rfacebook/R/getInsights.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
#' insights <- getInsights(object_id="20531316728", token=fb_oauth, metric='page_impressions')
#' ## Getting post impressions for a random Facebook`s page post
#' ## (only owner or admin of page)
#' insights <- getInsights(object_id='221568044327801_754789777921289', token=fb_oauth, metric='post_impressions', period='days_28')
#' insights <- getInsights(object_id='221568044327801_754789777921289',
#' token=fb_oauth, metric='post_impressions', period='days_28')
#' }
#'

Expand Down
3 changes: 2 additions & 1 deletion Rfacebook/man/getInsights.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ that you must specify wich metric from insights you need.
insights <- getInsights(object_id="20531316728", token=fb_oauth, metric='page_impressions')
## Getting post impressions for a random Facebook`s page post
## (only owner or admin of page)
insights <- getInsights(object_id='221568044327801_754789777921289', token=fb_oauth, metric='post_impressions', period='days_28')
insights <- getInsights(object_id='221568044327801_754789777921289',
token=fb_oauth, metric='post_impressions', period='days_28')
}
}
\author{
Expand Down

0 comments on commit 24c7ac1

Please sign in to comment.