check_title: Check markdown header title

View source: R/check-rmd.R

check_titleR Documentation

Check markdown header title

Description

Checks if a title was specified for a markdown header. If not, generates a feedback message. If yes, zooms in on the title so you can use check_equal.

Usage

check_title(state, not_found_msg = NULL, append = TRUE)

Arguments

state

the state to start from. Should be a state produced by check_header.

not_found_msg

If specified, this overrides the automatically generated message in case no title was specified.

append

Whether or not to append the feedback to feedback built in previous states.

Value

A state that zooms in on the title of the header.


Data-Camp/testwhat documentation built on June 24, 2022, 9:59 p.m.