readr_spec_aligned: Align & qualify the 'col_types' specification passed to...

View source: R/readr-spec-aligned.R

readr_spec_alignedR Documentation

Align & qualify the col_types specification passed to readr::spec_csv().

Description

These functions are used during the execution of a program. Rather they produce snippets that can be pasted into code, and help the developer avoid some typing.

Usage

readr_spec_aligned(...)

Arguments

...

values passed to readr::spec_csv().

Value

Prints formatted code to the console.

Author(s)

Will Beasley

Examples

# The aligned values produced by this function.
readr_spec_aligned(system.file("test-data/subject-1.csv", package = "OuhscMunge"))
readr_spec_aligned(system.file("package-dependency-list.csv", package = "OuhscMunge"))

# For reference, the unaligned output of `readr::spec_csv()`.
readr::spec_csv(system.file("test-data/subject-1.csv", package = "OuhscMunge"))
readr::spec_csv(system.file("package-dependency-list.csv", package = "OuhscMunge"))

OuhscBbmc/OuhscMunge documentation built on Dec. 5, 2024, 4:34 a.m.