Hello everyone. I have problem using brochure package in shiny-server. For example, I have code like this:
library(shiny)
library(brochure)
# First page
page1<- function(){
page(
href = "/",
ui = fluidPage(
h1("This is my first page"),
plotOutput("plot")
),
server = function(input, output, session) {
output$plot <- renderPlot({
plot(iris)
})
}
)}
# Second page, without any server-side function
page2 <-function(){
page(
href = "/page2",
ui = fluidPage(
h1("This is my second page"),
tags$p("There is no server function in this one")
)
)
}
brochureApp(
page1(),
page2(),
onStart = NULL,
options = list(),
enableBookmarking = "url",
content_404 = "Not found",
basepath = "brochure",
req_handlers = list(),
res_handlers = list(),
wrapped = shiny::tagList
)
The problem is that the plot output does not appear in the browser because the brochure package does not read some of the shiny package features. I have checked the log file and it doesn't give any errors. I just looked at the console after inspecting the browser and the error was like this:
Even though I have used all the packages and shiny-server latest version. Can anyone help me. Thank You