Checks whether a specially structured comment line if formatted in the way that qryflow expects.
Details
Tag lines should look like this: -- @key: value
Begins with an inline comment (
--
)An
@
precedes a tag type (e.g.,type
,name
,query
,exec
) and is followed by a colon (:
)A value is provided
Examples
a <- "-- @query: df_mtcars"
b <- "-- @exec: prep_tbl"
c <- "-- @type: query"
lines <- c(a, b, c)
is_tag_line(lines)
#> [1] TRUE TRUE TRUE