You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if rgl output was automatically included in reprex() output. This should be easy to do because knitr has supported rgl output for a while now. All that is needed is to run rgl::setupKnitr(autoprint = TRUE) and snapshots of output will be produced.
To set this automatically, reprex() could run the following code:
I would be happy to submit a PR to do this if you give me a hint where it should happen. Here's what output would look like with this addition (though of course thesetHook() call won't be displayed if reprex() runs it internally):
For anyone reading this and running reprex without this facility, you don't really need to do it as a hook, it's enough to run the line in the code you're reproducing, e.g.
It would be nice if
rgl
output was automatically included inreprex()
output. This should be easy to do becauseknitr
has supportedrgl
output for a while now. All that is needed is to runrgl::setupKnitr(autoprint = TRUE)
and snapshots of output will be produced.To set this automatically,
reprex()
could run the following code:I would be happy to submit a PR to do this if you give me a hint where it should happen. Here's what output would look like with this addition (though of course the
setHook()
call won't be displayed ifreprex()
runs it internally):Created on 2022-01-23 by the reprex package (v2.0.1)
For anyone reading this and running
reprex
without this facility, you don't really need to do it as a hook, it's enough to run the line in the code you're reproducing, e.g.The text was updated successfully, but these errors were encountered: