闪亮:sliderInput 中的 sep 参数抛出错误

Shiny: sep argument in sliderInput throws error

希望这是简单而愚蠢的事情。我正在尝试获取滑块输入来选择年份。它有效,但幻灯片显示的值类似于 "1,997" 而不是 "1997"。恼人的。所以我在 this page 上发现 sliderInput 上有一个默认的 sep="," 参数。

但是当我将 sep="" 放入我的代码时,它破坏了应用程序并说 Error in sliderInput("year", "Which Year?", value = 2000, sep = "", min = 1984, : unused argument (sep = "")

有什么想法吗?这是完整的侧边栏。在我添加 sep

之前它正在工作

sidebarPanel( sliderInput('year', 'Which Year?', value = 2000, sep = "", min = 1984, max = 2015, step = 1,), h4('albums on both lists:'), verbatimTextOutput("winners"), h4('chart-toppers that the critics snubbed:'), verbatimTextOutput("loser") ),

rm(list = ls())
library(shiny)
ui = fluidPage(sidebarPanel(sliderInput('year', 'Which Year?', value = 2000, sep = "", min = 1984, max = 2015, step = 1)))
server = (function(input, output) {})
runApp(list(ui = ui, server = server))

我刚刚更新到 shiny_0.12.2 并修复了它。感谢大家的帮助。