Skip to contents

Imports a documented table and resolves ambiguous guide elements. A wrapper for io_csv.character that also reads associated yamlet metadata, if present, and applies it as attributes. Invokes resolve to resolve ambiguity of 'guide' attribute, if possible. A short-cut for resolve(io_csv(x)).

Usage

# S3 method for class 'character'
io_res(x, ext = getOption("yamlet_extension", ".yaml"), ...)

Arguments

x

character file path; passed to io_csv.character

ext

extension for metadata equivalent of x

...

passed to io_csv.character

Value

decorated

Examples

library(magrittr)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- io_csv(file) %>% resolve
y <- io_res(file)
identical(x, y)
#> [1] TRUE