get_post_header: Get the line indices for a section

Description Usage Arguments

View source: R/get_question_section.R

Description

Finds the line indices of a section in an .Rmd file formatted for use with the 'exams' package.

Usage

1
2
3
4
5
6
get_post_header(
  f_name = NULL,
  f_lines = NULL,
  header = "Question\\s{0,}$",
  yaml_header_delim = "---"
)

Arguments

f_name

A character representing the path to a .Rmd source file.

f_lines

A character vector with the lines of the .Rmd source file.

header

Name of section, e.g. "Question", "Solution", "Meta-information"

yaml_header_delim

blah


michaelfrancenelson/rmd.utils documentation built on Dec. 21, 2021, 5:57 p.m.