~/code/MASTER_INDEX.md
knitr::opts_chunk$set(echo = TRUE, comment = " ##", tidy = "styler", error = TRUE, collapse = T ) # T easier to read
library(jimTools) library(curl)
con <- curl(url = "http://httpbin.org") readLines(con) #HTML curl(url = "http://httpbin.org/get") x <- curl(url = "http://httpbin.org/get", open = "", handle = new_handle()) ## View readLines(x)
library(data.table) dt <- data.table() opts <- curl_options() names <- names(opts) names(opts) <- NULL values <- opts dt <- data.table(name = names, value = values) dt
h <- new_handle() h str(h)
#| echo = FALSE, #| message = FALSE, #| fig.width = 6, #| fig.height = 6, #| fig.path = "figures/", #| fig.caption = "This is a long caption that fits better inside of a code chunk", #| fig.alt = "This is a long description that conveys the meaning of the visual." library(ggplot2)
output_dir <- Sys.getenv("OUTPUT_DIR") output_dir { # get file file <- "/home/jim/.config/nvim/templates/skeleton.Rmd" file <- normalizePath(file) file ## Ref only # the_dir <- dirname(file) # file <- basename(file) # file <- file.path(the_dir, file) } rmarkdown::render(file, # output_format="html_document", output_format="pdf_document", intermediates_dir='./tmp', clean = F, # leave tmp files output_dir=output_dir )
htmltools::h3("Test big font") htmltools::h4('Test medium font') htmltools::h5('Test smaller font')
r htmltools::h3("Outside chunck")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.