read_builtin: Read built-in object from package

View source: R/read_builtin.R

read_builtinR Documentation

Read built-in object from package

Description

Consistent wrapper around data() that forces the promise. This is also a stronger parallel to loading data from a file.

Usage

read_builtin(x, package = NULL)

Arguments

x

Name (character string) of data set to read.

package

Name of package from which to find data set. By default, all attached packages are searched and then the 'data' subdirectory (if present) of the current working directory.

Value

An object of the built-in class of x.

Examples

read_builtin("mtcars", "datasets")

readr documentation built on Feb. 16, 2023, 6:04 p.m.