Reputation: 3992
I have several packages that make extensive use of rgl in documentation examples. Every time I do R CMD check
, every such example opens a collection of rgl windows briefly, which is annoying.
Is there some rgl setting I can use in the .Rd
files to suppress this behavior? Is there any downside to doing this?
Upvotes: 2
Views: 551
Reputation: 44897
Set the environment variable RGL_USE_NULL=TRUE
and rgl
won't try to open any windows.
This should be done outside of R, before running R CMD check
. It can also be done inside R using Sys.setenv(RGL_USE_NULL = TRUE)
before loading rgl
if you don't want to see rgl
displays during an interactive session.
Upvotes: 3