collect: Execute a lazy query and return a data.frame

View source: R/collect.R

collectR Documentation

Execute a lazy query and return a data.frame

Description

Pulls all batches from the execution plan and materializes the result as an R data.frame.

Usage

collect(x, ...)

Arguments

x

A vectra_node object.

...

Ignored.

Value

A data.frame with the query results.

Examples

f <- tempfile(fileext = ".vtr")
write_vtr(mtcars, f)
result <- tbl(f) |> collect()
head(result)
unlink(f)


vectra documentation built on May 8, 2026, 9:06 a.m.