as.html: Transform to html

Description Usage Arguments Value Examples

View source: R/asHtml.R

Description

Transform string into HTML ready for Rmarkdown and Shiny

Usage

1

Arguments

h

string

Value

HTML form of the string for easy insertion in Shiny or Rmarkdown documents

Examples

1
2
3
4
string <- "<b>smile</b>" #html b tag included to make the string bold
string_trans <- as.html(string)
cat(string) #when inserted in Rmarkdown will not show up as bolded
cat(string_trans) #when inserted into Rmarkdown will show up as bolded after knitting

r2symbols documentation built on Sept. 13, 2020, 5:18 p.m.