-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
The compiled app works using the httpuv::runStaticServer function, but it breaks when uploaded to a WordPress site. Full console output below.
I've experimented with the headers and this is what I get when I use COOP set to "same-origin" and nothing else. The app is just a toy example and its only functions are to create a slider input, read a CSV from the app directory, and display the contents in a DataTable.
App Code:
library(shiny)
library(DT)
libtable <- read.csv("papers.csv")
ui <- fluidPage(
# Application title
titlePanel("Title"),
sidebarLayout(
sidebarPanel(
sliderInput("pubyear",
"Publication Year:",
min = 1965,
max = 2025,
value = 2021,
sep="")
),
mainPanel(
DTOutput("dtab")
)
)
)
server <- function(input, output, session) {
output$dtab <- renderDataTable(libtable,extensions='SearchBuilder', options=list(dom='Qftp'), filter=list(position='top', clear=F))
}
# Run the application
shinyApp(ui = ui, server = server)
Metadata
Metadata
Assignees
Labels
No labels