knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The purpose of about is to read and write metadata. Specifically it can read the metadata from any webpage and it can write arbitrary metadata to the YAML
header of an Rmarkdown or Quarto file.
You can install the development version of about from GitHub with:
# install.packages("devtools") devtools::install_github("mrjoh3/about")
library(about) read_metadata('https://www.w3.org/', output = 'data.frame')
create_document( title = 'My New Quarto with Metadata', .fun = 'quarto', security = 'confidential', categories = c('metadata','create') )
The code above will create a new Quarto file with the following yaml header:
--- title: My New Quarto with Metadata format: html editor: visual uuid: a5b32d65-cf7a-4d1b-a996-5d22f4d65359 draft: yes security: confidential categories: - metadata - create ---
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.