svg.close | R Documentation |
Closes the connection to the Viewer file.
svg.close(wait = FALSE, quiet = TRUE)
wait |
Whether connection should stay open (wait) until the user closes the browser window. This parameter only applies if the |
quiet |
Whether message should be printed to console. |
This function closes the connection to the Viewer file opened by svg.new
. If no file is input to svg.new
and the mode is 'webgl' then calling svg.close
will signal that all objects have been plotted and the Viewer will open in the default web browser.
NULL
Aaron Olsen
svg.new
## Not run:
# Create new Viewer
svg.new(mode='webgl')
# Add object
svg.cylinder(ends=rbind(c(0,0,0), c(0,10,0)), radius=1, col='green')
# Close connection
svg.close()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.