Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to reproduce R example #56

Open
viniciuszendron opened this issue Aug 6, 2021 · 0 comments
Open

Unable to reproduce R example #56

viniciuszendron opened this issue Aug 6, 2021 · 0 comments

Comments

@viniciuszendron
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant