#' Helper function: get number of "endlines"
#'
#' @param content content of text file
#'
#' @return returns number of lines starting with "end"
#' @keywords internal
#' @noMd
#' @noRd
#' @importFrom stringr str_detect
get_number_of_endlines <- function(content) {
sum(stringr::str_detect(content, pattern = "^end"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.