build_exercises: Creates exams in using exercises from the book

Description Usage Arguments Value Examples

View source: R/exams_fcts.R

Description

This function uses the exam package to create exercises in the html 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 "Analise de dados financeiros e economicos com o R".

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
build_exercises(
  students_names,
  students_ids = paste0("Exam ", 1:length(students_names)),
  dir_exercises = get_EOC_dir(),
  format_out = "pdf",
  class_name = "Nome da Disciplina",
  exercise_name = paste0("Exercicios Teste"),
  chapters_to_include = 1:13,
  dir_out = "adfeR-pdf-exercises",
  language = "en",
  solution = FALSE,
  log_answer_key = FALSE
)

Arguments

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

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)

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).

Value

TRUE, if sucessfull

Examples

1
2
3
4
5
## Not run: 
afedR_build_exam(students_names = 'George', chapters_to_include = 2,
                 dir_out = tempdir())
 
## End(Not run)

msperlin/adfeR documentation built on March 26, 2021, 3:05 a.m.