1、重複送出報錯
之前遇到的問題,一直沒解決~感謝google
1.1、報錯日志
# 檢視日志
cd /var/log/shiny-server # 日志存放路徑
cat Data_Compass-shiny-20170913-193720-43061.log
# 報錯資訊
Warning: Error in <Anonymous>: cannot open file 'Rplots.pdf'

1.2、解決方式
chown -R shiny:shiny /srv/shiny-server
1.3、參考
https://stackoverflow.com/questions/36777416/plotly-plot-not-rendering-on-shiny-server
2、日期不更新
2.1、錯誤形式
ui腳本中時間控件設定如下:
dateRangeInput(inputId="date",
label = h2(strong(span("日期",style="color:blue"))),
#開始日期
start = Sys.Date()-7,
#結束日期
end = Sys.Date()-1,
language = "zh-CN",
width = "90%",
separator = "至"
)
但是日期卻不更新。
2.2、解決方式
as.POSIXct
轉換時間格式
dateRangeInput(inputId="date",
label = h2(strong(span("日期",style="color:blue"))),
#開始日期
start = as.POSIXct(Sys.Date()-7),
#結束日期
end = as.POSIXct(Sys.Date()-1),
language = "zh-CN",
width = "90%",
separator = "至", max = as.POSIXct(Sys.Date())
)