Skip to content

preload error: there is no package called 'shiny' #163

@atomes-epar

Description

@atomes-epar

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.

Image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions