I was wondering if there is a way to integrate the package manipulateor gWidgetsManipulateso that their outputs can be viewed / manipulated in the html / markdown output file, since I think it will be extremely useful in developing reproducible interactive research reports. I know that googleVis has some functionality that allows you to integrate it with knitr so that the outputs get into the html file using parameters such as results = 'asis', but googleVis currently limits its capabilities when using sliders, for example.
If the outputs of the management pack or gWidgetsManipulate have not yet been integrated, would it be possible to propose a workaround that allows you to view it in an html file?
i.e. my current code in my rmd file before running knitr-ing in html looks like below ... but I get the following errors.
```{r}
library(manipulate)
manipulate(plot(1:x), x = slider(5, 10))
```
with exit
library(manipulate)
#
manipulate(plot(1:x), x = slider(5, 10))
#
so try the gWidgetsManipulate package instead ...
```{r}
library(gWidgetsManipulate)
manipulate(plot(1:x), x = slider(5, 10))
```
you get an error ...
library("gWidgetsManipulate")
manipulate(plot(1:x), x = slider(5, 10))
I tried to tell guiToolkit to fix this error using things like
options(guiToolkit="WWW")
but to no avail ...
Any help would be greatly appreciated, thanks in advance
source
share