File: tbl_lazy.Rd

package info (click to toggle)
r-cran-dbplyr 2.3.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,376 kB
  • sloc: sh: 13; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 706 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tbl-lazy.R
\name{tbl_lazy}
\alias{tbl_lazy}
\alias{lazy_frame}
\title{Create a local lazy tibble}
\usage{
tbl_lazy(df, con = NULL, src = NULL, name = "df")

lazy_frame(..., con = NULL, src = NULL, .name = "df")
}
\description{
These functions are useful for testing SQL generation without having to
have an active database connection. See \code{\link[=simulate_dbi]{simulate_dbi()}} for a list
available database simulations.
}
\examples{
library(dplyr)
df <- data.frame(x = 1, y = 2)

df_sqlite <- tbl_lazy(df, con = simulate_sqlite())
df_sqlite \%>\% summarise(x = sd(x, na.rm = TRUE)) \%>\% show_query()
}
\keyword{internal}