search for: setupknitr

Displaying 4 results from an estimated 4 matches for "setupknitr".

2015 Sep 12
3
rgl/webGL complains about Javascript, even in recent online docs?
...oaded before rgl, but when building the vignettes for the package, the load order is different, and the initialization was silently skipped. I'll soon be committing changes to R-forge to fix this, and eventually it will end up on CRAN. At the moment it looks like I need to add this function: setupKnitr <- function() { if (requireNamespace("knitr")) { knitr::knit_hooks$set(webgl = hook_webgl) knitr::knit_hooks$set(rgl = hook_rgl) environment(hook_webgl)$commonParts <- TRUE environment(hook_webgl)$reuse <- TRUE } } and that should be called (just once) near t...
2015 Sep 12
1
rgl/webGL complains about Javascript, even in recent online docs?
...kage, the load >> order is different, and the initialization was silently skipped. >> >> I'll soon be committing changes to R-forge to fix this, and eventually >> it will end up on CRAN. At the moment it looks like I need to add this >> function: >> >> setupKnitr <- function() { >> if (requireNamespace("knitr")) { >> knitr::knit_hooks$set(webgl = hook_webgl) >> knitr::knit_hooks$set(rgl = hook_rgl) >> environment(hook_webgl)$commonParts <- TRUE >> environment(hook_webgl)$reuse <- TRUE >&g...
2015 Sep 12
0
rgl/webGL complains about Javascript, even in recent online docs?
...ng the vignettes for the package, the load > order is different, and the initialization was silently skipped. > > I'll soon be committing changes to R-forge to fix this, and eventually > it will end up on CRAN. At the moment it looks like I need to add this > function: > > setupKnitr <- function() { > if (requireNamespace("knitr")) { > knitr::knit_hooks$set(webgl = hook_webgl) > knitr::knit_hooks$set(rgl = hook_rgl) > environment(hook_webgl)$commonParts <- TRUE > environment(hook_webgl)$reuse <- TRUE > } > } > >...
2015 Sep 12
2
rgl/webGL complains about Javascript, even in recent online docs?
Hello, The recently created online "rgl Overview" at https://cran.r-project.org/web/packages/rgl/vignettes/rgl.html illustrates a problem that I am trying to resolve. At the bottom of each image block on that page appears the advisory: You must enable Javascript to view this page properly. I am using Safari under MacOS with Javascript and WebGL both enabled, so it must be the