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 7 | get_question_section_indices(
f_name = NULL,
f_lines = NULL,
header = "Question\\s{0,}$",
delim = "^={3,}\\s{0,}$",
end_header = NULL
)
|
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" |
delim |
The section break delimiter to search for. By default searches for three or more consecutive equals symbols. |
end_header |
blah NULL |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.