src_local

0th

Percentile

A local source.

This is mainly useful for testing, since makes it possible to refer to local and remote tables using exactly the same syntax.

Keywords
internal
Usage
src_local(tbl, pkg = NULL, env = NULL)

src_df(pkg = NULL, env = NULL)

src_dt(pkg = NULL, env = NULL)

Arguments
tbl
name of the function used to generate tbl objects
pkg,env
Either the name of a package or an environment object in which to look for objects.
Details

Generally, src_local should not be called directly, but instead one of the (currently three) constructors should be used.

Aliases
  • src_df
  • src_dt
  • src_local
Examples
if (require("Lahman")) {
src_dt("Lahman")
src_df("Lahman")

batting_df <- tbl(src_df("Lahman"), "Batting")
batting_dt <- tbl(src_dt("Lahman"), "Batting")
}
Documentation reproduced from package dplyr, version 0.1.1, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.