I have knitr: 1.10.5 and rgl:0.95.1247.
When i try the code:
```output:
html_document:
keep_md: yes```
```{r setup, results='asis'}
library(knitr)
knit_hooks$set(webgl = hook_webgl)
```
```{r testgl, webgl=TRUE}
library(rgl)
x <- sort(rnorm(1000))
y <- rnorm(1000)
z <- rnorm(1000) + atan2(x,y)
plot3d(x, y, z, col=rainbow(1000))
```
I get the error: You must enable Javascript to view this page properly. Javascript is enabled, and the browseURL function in rgl works fine.
Anyone who knows what the problem is?