【发布时间】:2020-08-21 04:09:51
【问题描述】:
我有一个表,我正在使用 R 中的 reactable 构建一个表,并且想添加一个与我在表本身中使用的字体相同的标题。我想出了如何添加标题,但是如何更改字体?
library(htmlwidgets)
library(reactable)
reactable(head(iris, 10),
style = list(fontFamily = 'Menlo',
fontSize = '14px'),
highlight = TRUE) %>%
htmlwidgets::prependContent(htmltools::tags$h1("This is my Title"))
【问题讨论】:
标签: r