powered by
Checks whether a specially structured comment line if formatted in the way that qryflow expects.
is_tag_line(line)
Logical. Indicating whether each line matches tag specification.
A character vector to check. It is a vectorized function.
Tag lines should look like this: -- @key: value
-- @key: value
Begins with an inline comment (--)
--
An @ precedes a tag type (e.g., type, name, query, exec) and is followed by a colon (:)
@
type
name
query
exec
:
A value is provided
a <- "-- @query: df_mtcars" b <- "-- @exec: prep_tbl" c <- "-- @type: query" lines <- c(a, b, c) is_tag_line(lines)
Run the code above in your browser using DataLab