View source: R/get_question_section.R
Finds the line indices of a section in an .Rmd file formatted for use with the 'exams' package.
1 2 3 4 5 6 | get_post_header(
f_name = NULL,
f_lines = NULL,
header = "Question\\s{0,}$",
yaml_header_delim = "---"
)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.