Skip to content

dash on RStudio server viewer pane not loading #246

@cmtso

Description

@cmtso

Hello,

We have a private cloud and have been using Rstudio server (https://www.rstudio.com/products/rstudio/download-server/) for Shiny apps and all sorts. I am trying to build dash apps in it but it's stuck in the loading page for a long time. I wonder any of my settings is wrong. It runs fine on a desktop Rstudio.

my app:

library(dash)
library(dashCoreComponents)
library(dashHtmlComponents)

#https://support.rstudio.com/hc/en-us/articles/202133558-Extending-RStudio-with-the-Viewer-Pane
app <- Dash$new()
app$layout(
  htmlDiv(
    list(
      htmlH1('Hello Dash'),
      htmlDiv(children = "Dash: A web application framework for R."),
      dccGraph(
        figure=list(
          data=list(
            list(=list(1, 2, 3),y=list(4, 1, 2),type='bar',name='SF' ,
            list(x=list(1, 2, 3),y=list(2, 4, 5),type='bar',name='Montr\U{00E9}al')),
          layout = list(title='Dash Data Visualization')
        )
      )
    )
  )
)

app$run_server(use_viewer = TRUE)

When I run the app, the R terminal shows:
Fire started at 127.0.0.1:8050
start: 127.0.0.1:8050
request: 127.0.0.1 - ID_127.0.0.1 [01/Apr/2021:13:35:51 +0000] "GET /?viewer_pane=1&capabilities=1&host=https%3A%2F%2Fxyz.ac.uk HTTP/1.1" 200 1796 "https://xyz.ac.uk/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36"

And on the Rstudio view pane, it just shows Loading... and not changing

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