R:tr()、th()和thead()-它们属于哪个包?
我用一个自定义容器构建了一个R:tr()、th()和thead()-它们属于哪个包?,r,dt,htmlwidgets,R,Dt,Htmlwidgets,我用一个自定义容器构建了一个DT表,类似于(第2.6-2.6点自定义表容器)。我正在打包使用此表的闪亮应用程序,我想知道用于定义草图对象的th()、tr()和thead()函数属于哪个包 ?thead等。指向各种DT函数,但?DT::thead()不返回任何文档。谢谢你的指点 您应该注意,在sketch的定义中,它们称为htmltools::withTags,这相当简单 function (code) { eval(substitute(code), envir = as.list(t
DT
表,类似于(第2.6-2.6点自定义表容器)。我正在打包使用此表的闪亮应用程序,我想知道用于定义草图
对象的th()
、tr()
和thead()
函数属于哪个包
?thead
等。指向各种DT
函数,但?DT::thead()
不返回任何文档。谢谢你的指点 您应该注意,在sketch的定义中,它们称为htmltools::withTags
,这相当简单
function (code)
{
eval(substitute(code), envir = as.list(tags), enclos = parent.frame())
}
<bytecode: 0x000001c832d09200>
<environment: namespace:htmltools>
其中每一种基本上都有相同的形式:
> tags$thead
function (...)
tag("thead", list(...))
<bytecode: 0x000001c82c4a2678>
<environment: namespace:htmltools>
这些是包
htmltools
中的标记的一些字段:标记$thead
,标记$th
。您可以通过使用标签(…)
访问这些标签,如您提供的链接所示。
> tags$thead
function (...)
tag("thead", list(...))
<bytecode: 0x000001c82c4a2678>
<environment: namespace:htmltools>
> tag("thead", "This is my thead")
<thead>This is my thead</thead>