Adds the overture_call class to a tbl_sql object. open_curtain()
does this for you; call it directly on a lazy table of Overture data you
built yourself, so that collect() returns sf and record_overture()
knows the type and theme of the data.
Arguments
- x
A tbl_sql object representing an Overture Maps dataset.
- type
A string specifying the type of overture dataset to read. Setting to "*" or
NULLwill read all types for a given theme. Seeoverture_types()for the valid values.- theme
Inferred from type by default. Must be set if type is "*" or
NULL.- release
The Overture release the data came from, such as
"2026-08-19.0", orNULLif unknown.
Value
A tbl_sql object with the additional class overture_call and an
overture_playbill attribute: a list with type, theme and release.
Examples
if (FALSE) { # interactive()
# The open_curtain() function already uses as_overture() internally,
# but you can also use it directly:
conn <- stage_conn()
division <- open_curtain("division", tablename = "test")
class(division)
# views
division2 <- tbl(conn, "test")
division2 <- as_overture(division2, "division")
strike_stage(conn)
}
