R/has_xml_closing_tag.R

Defines functions has_xml_closing_tag

Documented in has_xml_closing_tag

#' Is an XML closing tag with the value of \code{section}
#'   present among the lines of
#'   the text?
#' @param lines lines of the XML text
#' @param section the XML section
#' @return TRUE if there is an XML closing tag with the value of
#'   \code{section} present. FALSE otherwise
#' @author Richèl J.C. Bilderbeek
#' @export
has_xml_closing_tag <- function(
  lines,
  section
) {
  check_string(section)
  !is_one_na(
    find_last_xml_closing_tag_line(
      lines = lines,
      section = section
    )
  )
}

Try the beautier package in your browser

Any scripts or data that you put into this service are public.

beautier documentation built on Nov. 2, 2023, 5:08 p.m.