Skip to content

Commit

Permalink
Use local demo data in vignette to avoid auth on pkgdown build
Browse files Browse the repository at this point in the history
  • Loading branch information
neilc-itv committed Dec 19, 2024
1 parent 2a697ea commit 1a2d5bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ Suggests:
Config/testthat/edition: 3
URL: http://io.itv.com/baRb/
VignetteBuilder: knitr
Depends:
R (>= 2.10)
Binary file added data/spots_demo.rda
Binary file not shown.
11 changes: 7 additions & 4 deletions vignettes/daily-impacts-chart.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ knitr::opts_chunk$set(
library(baRb)
library(ggplot2)
spots <- barb_get_spots('2024-01-01',
'2024-01-01',
advertiser_name = 'ITV',
async = FALSE)
# Demo data loaded from package to avoid needing credentials
# spots <- barb_get_spots('2024-01-01',
# '2024-01-01',
# advertiser_name = 'ITV',
# async = FALSE)
spots <- spots_demo
head(spots)
Expand Down

0 comments on commit 1a2d5bb

Please sign in to comment.