Skip to content

Unable to reproduce R example #56

Description

@viniciuszendron

Description

I am unable to reproduce the README example of R.

Code to Reproduce

The original R code provided in README have some ending ")" missing. I added them and the id property in vtkView as well but the rest remains the same.

library(dash)
library(dashVtk)
library(dashHtmlComponents)

app <- Dash$new()

app$layout(
    htmlDiv(id = "outerDiv",
        style = list("width" = "100%", "height" = "calc(100vh - 16px)"),
        children = vtkView(
            id = "vtkview",
            list(
                vtkGeometryRepresentation(
                    vtkAlgorithm(
                        vtkClass = "vtkConeSource",
                        state = list("resolution" = 64, "capping" = FALSE),
                    )
                )
            )
        )
    )
)

app$run_server()

Results

The browser (either chrome or safari) opens the app exposed on localhost but the page is entirely blank, not showing anything. In fact, the R console shows the following warning:
warning: The dependency 'async-reactvtk.js' could not be loaded; the file was not found. from NULL

I'm wondering if the above dependency was not added to the package.

Versions

> sapply(c("dashVtk", "dash", "dashHtmlComponents"), packageVersion, USE.NAMES = T)
$dashVtk
[1] '0.0.9'
$dash
[1] '0.5.0'
$dashHtmlComponents
[1] '1.0.3'

> R.Version()$platform
[1] "x86_64-apple-darwin15.6.0"
> R.Version()$version.string
[1] "R version 3.6.0 (2019-04-26)"

Thanks for your attention and for providing this integration between Dash and VTK.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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