%matches%.character {spec}R Documentation

Check Whether Character matches y

Description

Checks whether character matches y, treating x as filepath.

Usage

## S3 method for class 'character'
x %matches% y, ...

Arguments

x

character

y

object

...

passed arguments

See Also

Other matches: %matches%.data.frame(), %matches%.spec(), %matches%()

Examples

data(drug)
file <- tempfile()
spec <- specification(drug, tol = 3)
library(csv)
as.csv(drug, file)
file %matches% spec

[Package spec version 0.1.9 Index]