View source: R/appTemplateV2.R
config_formatter | R Documentation |
格式化配置文件
config_formatter(data)
data |
数据框的配置文件 |
返回值
config_formatter()
# config <- list(
# row = list(
# Fshow =TRUE,
# Fname='第一行',
# Fid='row',
# Ficon='clock'
# ),
# column =list(
# Fshow=FALSE,
# Fname='测试一下',
# Fid='column',
# Ficon='history'
# ),
# book = list(
# Fshow=TRUE,
# Fname='第三项',
# Fid='book',
# Ficon='plane'
# ),
# series=list(
# Fshow=TRUE,
# Fname='第四项',
# Fid='series',
# Ficon='car-side'
# ),
# majority=list(
# Fshow=FALSE,
# Fname='第五项',
# Fid='majority',
# Ficon='hourglass'
#
# ),
# tutor=list(
# Fshow=TRUE,
# Fname='第六项',
# Fid='tutor',
# Ficon='user-times'
# )
#
# )
data_config <- data.frame(Fshow=c(TRUE,TRUE,TRUE,TRUE,TRUE,TRUE),
Fname=LETTERS[1:6],
Fid = c('row','column','book','series','majority','tutor'),
Ficon=c('clock','history','plane','car-side','hourglass','user-times'),
stringsAsFactors = F)
格式化为列表
config <- config_formatter(data_config)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.