【发布时间】:2015-03-05 13:08:56
【问题描述】:
我有一个这样的字符串,例如:
SomeName SomeValue
A much longer name AnotherValue
Even longer name than before NewValue
假设我在 R 变量中正确地保存了此文本
variable<-"SomeName SomeValue<br\>A much longer name AnotherValue<br\>Even longer name than before NewValue<br\>
在我的 ui.R 中:
...htmlOutput("TextTable")
在我的服务器中。R
output$TextTable<- renderUI({
HTML(variable)
})
但输出不是我想要的方式。除一个之外,所有空格都被删除。所以“列”不是我的输出中应该出现的。我怎样才能避免这种情况?
【问题讨论】:
-
HTML函数有什么作用?可能是在剥离空格?