Skip to content

Commit

Permalink
added u
Browse files Browse the repository at this point in the history
  • Loading branch information
trinker committed Sep 6, 2015
1 parent 5ac4f39 commit da9867a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ export(span)
export(split_sentences)
export(tag)
export(template2html)
export(u)
importFrom(data.table,data.table)
4 changes: 4 additions & 0 deletions R/tag.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ b <- function(x) tag(x, "<b>")
#' @export
em <- function(x) tag(x, "<em>")

#' @rdname tag
#' @export
u <- function(x) tag(x, "<u>")

3 changes: 3 additions & 0 deletions man/tag.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
\alias{p}
\alias{span}
\alias{tag}
\alias{u}
\title{Wrapp Text With HTML Tags}
\usage{
tag(x, left, right = gsub("^<", "</", left))
Expand All @@ -29,6 +30,8 @@ span(x, extra = "")
b(x)

em(x)

u(x)
}
\arguments{
\item{x}{A text string.}
Expand Down

0 comments on commit da9867a

Please sign in to comment.