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
Wish: support for rgl widget #163
Comments
I've just seen the same error. I'd be happy to modify rglwidget to work with flexdashboard, but I've no idea what modification would be needed. Any suggestions? |
@dmurdoch It looks like your widget objects' |
Yes, that's what's causing the problem. It's easy to work around, but I wonder if there's a deeper problem? In the example I was looking at, |
I've now put rgl 0.99.5 on R-forge with a fix for this. |
Ah, the flexdashboard/R/flex_dashboard.R Lines 247 to 262 in dd4440a
Looks like it creates one PNG for desktop, and another PNG that's intended for mobile devices in portrait mode. This feature is specific to flexdashboard so it makes sense that this issue doesn't repro elsewhere. Seems like mystery solved, so I'm closing the issue. Thanks for the report! |
Thanks for providing a framework for dashboards! I played with the html widgets example here and tried to replace the MetricsGraphics one with an rgl one:
library(rgl)
plot3d(mtcars$mpg, mtcars$disp, mtcars$hp,
xlab="miles per gallon", ylab="displacement", zlab="horse power", type="s", col=mtcars$cyl)
rglwidget()
This code works in Rmarkdown or bookdown, but does not work within the flexdashboard. I get the error message given below (German machine). It would be nice if rgl could be used in a flexdashboard.
Best, Ulrike
Here is the error message:
"Error in validateCssUnit(sizeInfo$width) : CSS units must be a single-element numeric or character vector"
"Ruft auf: ... -> need_screenshot -> toHTML -> validateCssUnit"
The text was updated successfully, but these errors were encountered: