title: Template for .Rmd output: html_document: pdf_document: latex_engine: xelatex toc: TRUE toc_depth: 1 fontsize: 12pt geometry: margin=0.5in,top=0.25in
knitr::opts_chunk$set( echo = TRUE, comment=" ##", error=TRUE, collapse=TRUE) library(jimTools)
if (!exists("api")) api <- get_api_codes()
# initial global values | set .httr_oauth # don't want to keep typing this l <- get_typical_values() { maxResults <- l$maxResults playlistId <- l$playlistId video_id = l$videoId } base_url <- "https://www.googleapis.com/youtube/v3/videos"
this_is_junk()
api_opts <- list(part = "snippet", id = video_id, maxResults = maxResults, fields="items(snippet(title))", key = api$api_key) r <- httr::GET(base_url, query = api_opts) httr::content(r)
knitr::knit_exit()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.