有时候我希望为我闪亮的xxxInput
选项设置长标签。以此单选按钮为例,该按钮选择时间方向以对到达机场的飞机数据集进行子集化。我想在标签中包含对选项的简短解释。但是,天真地包括\n
似乎无法使标签成为多线。
radioButtons(inputId = "dir",
label = "Choose direction to look for plane arrivals:
\nafter selected time,
\nbefore selected time,
\nor both.",
choices = c("after", "before", "both"),
inline = T,
selected = "both")