Forum: help
Monitor Forum | | rgl.postscript fails with options(rgl.useNULL = TRUE) [ Reply ] By: Aleksi Porokka on 2016-04-18 13:40 | [forum:43803] |
|
I I've understood correctly, rgl.snapshot won't work with headless devices, but should rgl.postscript work? Currently when running the following code, I get an error "In rgl.postscript("test.pdf", fmt = "pdf") : Postscript conversion failed": library(rgl) options(rgl.useNULL = TRUE) open3d() x <- sort(rnorm(1000)) y <- rnorm(1000) z <- rnorm(1000) + atan2(x, y) plot3d(x, y, z, col = rainbow(1000)) rgl.postscript("test.pdf",fmt="pdf") This works if rgl.useNULL = FALSE. The real issue is that I would need to get snapshots / postscripts working when using shiny on a headless server. |
|

