Skip to content

Commit

Permalink
Initial dump of Shiny tag library
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheng5 committed May 14, 2014
1 parent 46f704f commit 7ae40c6
Show file tree
Hide file tree
Showing 13 changed files with 1,753 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ Description: Tools for HTML generation and output
Depends:
R (>= 2.14.1)
Imports:
utils
utils,
digest
Suggests:
markdown,
testthat
Enhances: knitr
License: GPL-2
Roxygen: list(wrap = FALSE)
48 changes: 48 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,54 @@
# Generated by roxygen2 (4.0.0): do not edit by hand

S3method(as.character,shiny.tag)
S3method(as.character,shiny.tag.list)
S3method(format,html)
S3method(format,shiny.tag)
S3method(format,shiny.tag.list)
S3method(print,html)
S3method(print,shiny.tag)
S3method(print,shiny.tag.list)
export(HTML)
export(a)
export(attach_dependency)
export(br)
export(code)
export(div)
export(em)
export(h1)
export(h2)
export(h3)
export(h4)
export(h5)
export(h6)
export(hr)
export(html_dependency)
export(html_escape)
export(html_knit_print)
export(html_preserve)
export(html_print)
export(img)
export(includeCSS)
export(includeHTML)
export(includeMarkdown)
export(includeScript)
export(includeText)
export(knit_print.shiny.tag)
export(knit_print.shiny.tag.list)
export(p)
export(pre)
export(renderTags)
export(singleton)
export(span)
export(strong)
export(surroundSingletons)
export(tag)
export(tagAppendAttributes)
export(tagAppendChild)
export(tagAppendChildren)
export(tagList)
export(tagSetChildren)
export(tags)
export(takeSingletons)
export(withTags)
import(digest)
5 changes: 5 additions & 0 deletions R/html_dependency.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ html_dependency <- function(name,
))
}

#' @export
attach_dependency <- function(x, dependency) {
structure(x, html_dependency = dependency)
}

dir_path <- function(dependency) {
if ("dir" %in% names(dependency$src))
return(dependency$src[["dir"]])
Expand Down
Loading

0 comments on commit 7ae40c6

Please sign in to comment.