Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Commit bdec452

Browse files
committed
R CMD check cleanup
1 parent 14269a2 commit bdec452

File tree

9 files changed

+12
-6
lines changed

9 files changed

+12
-6
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Date: 2018-08-06
1414
URL: https://github.com/daroczig/fbRads
1515
License: AGPL-3
1616
Imports:
17+
stats,
1718
RCurl,
1819
jsonlite,
1920
digest,

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ importFrom(jsonlite,toJSON)
6363
importFrom(jsonlite,unbox)
6464
importFrom(jsonlite,validate)
6565
importFrom(plyr,ldply)
66+
importFrom(stats,setNames)
6667
importFrom(utils,URLdecode)
6768
importFrom(utils,URLencode)
6869
importFrom(utils,assignInMyNamespace)

R/fb_ad.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ fbad_create_ad <- function(fbacc,
1212
name,
1313
adset_id,
1414
creative_id,
15-
adgroup_status = c('ACTIVE', 'PAUSED'),
1615
status = c('ACTIVE', 'PAUSED'),...) {
1716

1817
fbacc <- fbad_check_fbacc()

R/fb_audience.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#' @param name string
55
#' @param description optional string
66
#' @param opt_out_link optional link
7+
#' @param subtype audience type
78
#' @return custom audience ID
89
#' @export
910
fbad_create_audience <- function(fbacc, name, description, opt_out_link,

R/fb_insights.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
#' list.stack(list.select(l, date_start, date_stop, ad_id, adset_id, impressions))
1919
#'
2020
#' ## get given list of fields and transform to tabular data
21-
#' l <- fb_insights(date_preset = 'today', level = 'ad', fields = toJSON(c('impressions', 'total_actions')))
21+
#' l <- fb_insights(date_preset = 'today', level = 'ad',
22+
#' fields = toJSON(c('impressions', 'total_actions')))
2223
#' data.table::rbindlist(l)
2324
#' }
2425
fb_insights <- function(fbacc, target = fbacc$acct_path, job_type = c('sync', 'async'), retries = 0, simplify = TRUE, ...) {

R/helpers.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ this_function_name <- function() {
2323
#' @param url string
2424
#' @return list
2525
#' @keywords internal
26+
#' @importFrom stats setNames
2627
url_parse <- function(url) {
2728

2829
schema <- sub('^(http[s]).*', '\\1', url)

man/fb_insights.Rd

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/fbad_create_ad.Rd

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/fbad_create_audience.Rd

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)