【问题标题】:Shiny app hangs with a 'please wait' message when loaded on a mobile device (R)闪亮的应用程序在移动设备上加载时挂起并显示“请稍候”消息 (R)
【发布时间】:2015-11-29 09:39:29
【问题描述】:

我已经构建了一个闪亮的应用程序来从 Quandl 加载数据并显示有助于跟踪我的投资的图表。我已在 https://jackpeacock.shinyapps.io/investmentgraphs

上将其发布到 shinyapps.io

这可以在桌面上正常加载,但只是挂在移动设备上的“请稍候”加载屏幕上。我已经在 Google Nexus 5 上的 Chrome 和 iPad 2 上的 Chrome 和 Safari 上对此进行了测试。我还尝试在这两种设备上请求桌面站点,但均未成功。 RStudio 的网站说移动设备不应该有问题。 (https://www.rstudio.com/faq-items/will-shiny-app-work-properly-mobile-device-iphone-android-ipad-kindle-etc/)

起初我认为这可能与使用 ggplot2 或 quandl 包有关,但后来我注意到我之前在 https://jackpeacock.shinyapps.io/chelseapredictor 构建的一个极其简单的应用程序也遇到了同样的问题。

我更简单的 UI.R 文档的顶部如下所示:

shinyUI(fluidPage(
    headerPanel("Can you catch Chelsea?"),
    sidebarPanel(
            dataTableOutput('lTable')
    ),
    mainPanel(
            tabsetPanel(
                    tabPanel("League Predictor",

我更简单的 server.R 文档的顶部如下所示:

# Let's first create the data frame:

Club <- c("Chelsea", "Man City", "Arsenal", "Man Utd", "Liverpool",
      "Spurs", "Southampton", "Stoke", "Swansea", "West Ham",
      "Newcastle", "Crystal Palace", "West Brom", "Everton",
      "Hull", "Sunderland", "Aston Villa", "QPR", "Burnley",
      "Leicester")

Played <- c(27, rep(28, 18), 27)

Points <- c(63, 58, 54, 53, 51, 50, 49, 42, 40, 39, 35, 30, 30, 28,
        27, 26, 25, 22, 22, 18)

leagueTable <- data.frame(Club, Played, Points)

shinyServer(
    function(input, output) {
            output$lTable <- renderDataTable(leagueTable, options=list(paging = FALSE, searching = FALSE))
            southampton <- reactive({

有人知道为什么我在使用移动设备时遇到问题吗?

【问题讨论】:

    标签: r mobile shiny


    【解决方案1】:

    这似乎是大写的问题。

    上述问题中的两个链接甚至都没有加载到桌面上。但是,如果我使用链接 https://jackpeacock.shinyapps.io/InvestmentGraphs 和 https://jackpeacock.shinyapps.io/ChelseaPredictor,我在桌面或移动设备上都不再有问题。

    【讨论】:

    • 你是对的。这是 shinyapps.io 上的一个已知问题,它可能有点令人困惑:shinyapps.io 上的应用程序名称不区分大小写(两个应用程序不能共享同一个不区分大小写的名称),但应用程序 URL 区分大小写。
    猜你喜欢
    • 2012-09-12
    • 2015-01-17
    • 2013-06-23
    • 1970-01-01
    • 2014-09-29
    • 2016-06-17
    • 2012-04-17
    • 1970-01-01
    • 2021-09-10
    相关资源
    最近更新 更多