is_tag_line {qryflow}R Documentation

Detect the presence of a properly structured tagline

Description

Checks whether a specially structured comment line if formatted in the way that qryflow expects.

Usage

is_tag_line(line)

Arguments

line

A character vector to check. It is a vectorized function.

Details

Tag lines should look like this: ⁠-- @key: value⁠

Value

Logical. Indicating whether each line matches tag specification.

Examples

a <- "-- @query: df_mtcars"
b <- "-- @exec: prep_tbl"
c <- "-- @type: query"

lines <- c(a, b, c)

is_tag_line(lines)

[Package qryflow version 0.1.0 Index]