Skip to content

404 error when embedding Shiny app in a package #18

@bersbersbers

Description

@bersbersbers

R/bug.R:

ui <- shiny::fluidPage(
    shiny::titlePanel("Hello Shiny!"),
    shiny::mainPanel(),
    theme = shinythemes::shinytheme("flatly"),
)

server <- function(input, output) {}

#' @export
bug <- function() {
    shiny::runApp(shinyApp(ui, server))
}

DESCRIPTION:

Package: bug
Title: bug
Version: 0.0.0.0001
Encoding: UTF-8
RoxygenNote: 7.1.1

NAMESPACE:

# Generated by roxygen2: do not edit by hand

export(bug)

Repro steps:

R -e "devtools::install()"
R -e "bug::bug()"

Result:
image

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