-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels