Like dplyr, vembedr also uses the pipe function, \%>\% to turn function composition into a series of imperative statements.

Arguments

lhs, rhs

An embed object and a function to apply to it

Examples

# Instead of
use_start_time(rickroll_youtube(), "1m35s")
#> <div class="vembedr">
#>   <div>
#>     <iframe src="https://www.youtube.com/embed/iik25wqIuFo?start=95" width="533" height="300" frameborder="0" allowfullscreen="" data-external="1"></iframe>
#>   </div>
#> </div>
# you can write
rickroll_youtube() %>% use_start_time("1m35s")
#> <div class="vembedr">
#>   <div>
#>     <iframe src="https://www.youtube.com/embed/iik25wqIuFo?start=95" width="533" height="300" frameborder="0" allowfullscreen="" data-external="1"></iframe>
#>   </div>
#> </div>