Return value of YAML directive "draft:"
is_draft()
Logical value: TRUE or FALSE.
For use in Rmarkdown documents. Return value of YAML directive "draft:", either true
or false
.
Will return FALSE if "draft:" directive does not exist in rmarkdown file.
Will return FALSE if value of "draft:" directive is not a logical value (true or false).