dmurdoch / rgl

rgl is a 3D visualization system based on OpenGL. It provides a medium to high level interface for use in R, currently modelled on classic R graphics, with extensions to allow for interaction.
https://dmurdoch.github.io/rgl/
GNU General Public License v2.0
85 stars 20 forks source link

Error in `webshot2::webshot` - unused argument (top = FALSE) #21

Closed psychemedia closed 3 years ago

psychemedia commented 3 years ago

Running rgl::snapshot3d(filename = temp, top = bring_to_front) from rayshader::render_snapshot() or rayshader::render_movie() was working but now throws an error: Error in webshot2::webshot(f1, file = filename, selector = "#webshot", : unused argument (top = FALSE)

3. capture.output(webshot2::webshot(f1, file = filename, selector = "#webshot", vwidth = width + 100, vheight = height, ...), type = "message")

2. rgl::snapshot3d(filename = temp, top = bring_to_front)

1. render_snapshot(hi_quality_fn, samples = 200, top = FALSE, scale_text_size = 24, clear = FALSE)
dmurdoch commented 3 years ago

Yes, I messed up the new params to snapshot3d. Will fix soon. In the meantime, adding webshot = FALSE to the arguments would work around the error (but does require changes to rayshader::render_snapshot).

psychemedia commented 3 years ago

Thanks:-)