Skip to contents

Closes the page's browser session and any server it started. A page opened from a shared serving handle leaves the server running. Closing an already-closed page is a no-op.

Usage

pz_close(page)

Arguments

page

A PaparazziPage from pz_open(), or any context on it (such as the end of a chain). A chain from pz_record_start() whose recording is still running stops and writes it first.

Value

The page, invisibly.

Examples

if (FALSE) { # paparazzi:::examples_run()
page <- pz_open(pz_example("tasks"))
pz_close(page)

# Closing a closed page does nothing
pz_close(page)
}