knitr::opts_chunk$set(echo = TRUE, comment = " ##", error = TRUE, collapse = TRUE)
# foo1 will be a function library(knitr) knit_hooks$set(foo1 = function(before, options, envir) { if (before) { paste0( '\\footnotesize _I appear before a chunk!_\n\n', '\\rule{3cm}{.4pt}') } else { '\\normalsize \n\n_I am after a chunk..._' } })
Normal workflow: acquire database/cleanup/analyis
Consider a different way: R to extract specific pieces of information from a resource.
Most websites are closed software: You can not poke around in the internals. API is way to open a close software system in specific ways and to specific users.
\centerline{\rule{3cm}{.4pt}}
\rule{3cm}{.4pt}
knitr::knit_exit()
https://httr2.r-lib.org
show httpbin.org show github.com
use app? They are going to give their username/password to your app.
Reference and Further Reading (
(Quote: httr2:: docs)
https://github.com/jimrothstein/docs/blob/master/misc_files/001_R_stats_tech_reading.md
{ file <- "000_TALK_CURL.Rmd" file <- normalizePath(file) file } rmarkdown::render(file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.