Learn R Programming

svgViewR (version 1.4.3)

svg.close: Closes Viewer connection

Description

Closes the connection to the Viewer file.

Usage

svg.close(wait = FALSE, quiet = TRUE)

Value

NULL

Arguments

wait

Whether connection should stay open (wait) until the user closes the browser window. This parameter only applies if the file input to svg.new is NULL.

quiet

Whether message should be printed to console.

Author

Aaron Olsen

Details

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.

See Also

svg.new

Examples

Run this code
if (FALSE) {
# 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()
}

Run the code above in your browser using DataLab