svg.close {svgViewR}R Documentation

Closes Viewer connection

Description

Closes the connection to the Viewer file.

Usage

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

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.

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.

Value

NULL

Author(s)

Aaron Olsen

See Also

svg.new

Examples

## 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)

[Package svgViewR version 1.4.3 Index]