knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) library(htmlRd)
The goal of htmlRd is to provide methods for converting htmltools shiny.tag objects into Rd.
You can install the released version of htmlRd from CRAN with:
install.packages("htmlRd")
This is a basic example which shows you how to solve a common problem:
html <- with(htmltools::tags, { div( h1("Converting HTML to Rd") , p("Currently " , code(a("htmlRd", href="https://github.com/RDocTaskForce/htmlRd")) , " only supports HTML tags found in the " , em("body"), " of the document." ) ) }) html
toRd(html)
The testextra
package is developed by the R Documentation Task Force,
an R Consortium
Infrastructure Steering Committee working group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.