$:$运算符对原子矢量标记$无效

时间:2017-03-01 08:26:18

标签: javascript html r shiny

我无法在R闪亮中使用标签$ operator。对于任何标签,我收到错误:

  

$:$运算符对原子矢量无效

以下是示例应用

server <- function(input, output, session) {

}

ui <- basicPage(
h1("Title without tags$"),
tags$blockquote("But block quote requires tags$ because it is less common than h3, h1 or code"),
h3("H3 is fine without tags and so is code here"),
code("data.frame(a=1:10, b=1:10)")
)

shinyApp(ui = ui, server = server)

以下是错误明细

Listening on http://127.0.0.1:3380
Warning: Error in $: $ operator is invalid for atomic vectors
Stack trace (innermost first):
49: tag
48: tags$div
47: div
46: tagList
45: attachDependencies
44: bootstrapPage
43: basicPage
 1: runApp
Error : $ operator is invalid for atomic vectors

我收到任何标记$运算符的相同错误。我是R的新人。请让我知道我错过了什么?

0 个答案:

没有答案