Error saying 'shinyServer(function(input,output){ output`$histogram`" while creating dashboard using shiny R

0 votes

I’m trying to create a dashboard using shiny R. this is my ui.R and server.R files

Ui.R
library(shiny)
library(shinydashboard)
shinyUI(
dashboardPage(
dashboardHeader(title="Edureka"),
dashboardSidebar(
menuItem("sales Dashboard"),
menuSubItem("DevOps"),
menuSubItem("Blockchain"),
menuSubItem("AWS"),
menuItem("Finance Dashboard")),
dashboardBody(
fluidRow(
box(plotOutput("$histogram"))
)
)
)
)
Server.R
library(shiny)
library(shinydashboard)
shinyServer(function(input,output){
output`$histogram` <- renderPlot({
hist(faithful$eruptions)
})
})

I end up with this error:

shinyServer(function(input,output){
           output`$histogram`
Nov 29, 2018 in Data Analytics by Ali
• 10,450 points
77 views

1 answer to this question.

0 votes

Try this for your server.R

library(shiny)
library(shinydashboard)
shinyServer(function(input,output){
  output$`$histogram`<- renderPlot({
    hist(faithful$eruptions)
  })
})
answered Nov 29, 2018 by Maverick
• 10,040 points

Related Questions In Data Analytics

0 votes
1 answer

How do I add Icons to my messages on my dashboard which I’m creating using shiny r?

Try something like this: dashboardHeader(title="Edureka", dropdownMenu type = "message", messageItem(from = ...READ MORE

answered Nov 29, 2018 in Data Analytics by Maverick
• 10,040 points
50 views
+3 votes
3 answers
+5 votes
0 answers
0 votes
1 answer

Error saying "could not find function "shinyUI"" in shiny R

Its a small spelling mistake that you've ...READ MORE

answered Nov 28, 2018 in Data Analytics by Maverick
• 10,040 points
347 views
0 votes
1 answer

Error saying "could not find function dashboardPage" in shiny R

Include this line in the code: Library(shinydashboard) READ MORE

answered Nov 28, 2018 in Data Analytics by Maverick
• 10,040 points
197 views
0 votes
1 answer

Error saying "ERROR: Expected tag to be of type header" while creating a dashboard using shiny R

sliderInput("bins","number of breaks",1,100,50), this line should come under ...READ MORE

answered Nov 29, 2018 in Data Analytics by Maverick
• 10,040 points
235 views