View source: R/exams_fcts_html.R
compile_html_exercises | R Documentation |
This function uses the exam package to create exercises in the html or pdf format with random selections. This means that each student will receive a different version of the same exercise. All exercise files are taken from book "Analysing Financial and Economic Data with R".
compile_html_exercises( students_names, students_ids = paste0("Exam ", 1:length(students_names)), class_name = "Sample class", exercise_name = paste0("Sample Exercise"), links_in_html = dplyr::tibble(text = "Analyzing Financial and Economic Data with R", url = "https://www.msperlin.com/blog/publication/2020_book-afedr-en/"), chapters_to_include = 1:13, solution = FALSE, dir_out = "html exams", language = "en" )
students_names |
Names of students (a vector) |
students_ids |
Ids of students (a vector) |
class_name |
The name of the class |
exercise_name |
The name of the exercises |
links_in_html |
A dataframe with links to be added in the html page. This can be anything that helps the students. The dataframe must have two columns: "text" with the text to appear in the html and "url" with the actual link (see default options for details). |
chapters_to_include |
Chapter to include in exercise (1-13) |
dir_out |
Folder to copy exercise html files |
language |
Selection of language ("en" only so far) |
TRUE, if sucessfull
## Not run: afedR_build_exam(students_names = 'George', chapters_to_include = 2, dir_out = tempdir()) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.