Open KafeelBasha opened 5 years ago
It is more than likely your UI file, not your server file.
Check the inputs your providing into the UI functions and make sure they're correctly declared. See example below where by not including title=
to the dashboardHeader
function returns the same error you're experiencing.
library(shiny)
library(shinydashboard)
ui <- dashboardPage(
dashboardHeader("Invalid Title"),
# dashboardHeader(title="Valid Title"),
dashboardSidebar(),
dashboardBody()
)
server <- function(input, output) { }
shinyApp(ui, server)
> runApp('apppp.R')
[1] "Invalid Title"
Error in FUN(X[[i]], ...) : Expected an object with class 'shiny.tag'.
was there a solution to this error?
This code has certainly some issues:
output$class_neu=renderValueBox({
feeds.score%>%filter(sentiment=="neutral")%>%count()
})
However I'm also getting this error basically when I don't have data :
output$foo<- renderValueBox({
if(react() %>% nrow() < 1){
return()
}
valueBox(react()$Perf[1] %>% percent(accuracy = 0.1),
color = "yellow")
})
In this case NULL
is returned and the error appears. Not sure how to best handle that.
I see this also when I have a trailing comma sometimes -- removing the comma usually fixes it
您好,丁永兵已经收到您的邮件,谢谢。
Below is my code for the server part which returns error as shown in the screenshot.![image](https://user-images.githubusercontent.com/22866208/43768663-796d902c-9a55-11e8-91fc-eec74b28bd71.png)
Please help.