【发布时间】:2020-08-29 01:31:44
【问题描述】:
我在 Shiny 中创建了一个仪表板,每周有 3 次新数据,因此我尝试使用命令“today()" 在我发布它时,但是当有人在 shinyapps.io 中重新加载仪表板时,更新日期将更改为当前日期。
有没有什么方法可以在我发布时确定日期,而无需手动写下来?
这是我的代码:
hcmap("countries/co/co-all", showInLegend = FALSE) %>%
hc_credits(enabled = TRUE,
text = str_c("Data Source: www.---.com.<br/> Update Date:", format(today(), format="%d/%B/%Y"), sep = " "),
style = list(fontSize = "11px"), position = list(align = "center",y = -35))
【问题讨论】:
标签: r date shiny shinydashboard