add_html_content: Replaces content in html template file

View source: R/exams_fcts_html.R

add_html_contentR Documentation

Replaces content in html template file

Description

Used for replacing names, id, version and so on on html exercise files.

Usage

add_html_content(
  f_in,
  dir_out,
  student_name,
  student_version,
  n_q,
  class_name,
  exercise_name,
  exam_links
)

Arguments

f_in

File with html code

dir_out

Folder out

student_name

Name of student

student_version

Version of student

n_q

Number of questions in exercise

class_name

Name of class

exercise_name

Name of exercise

exam_links

Links to add

Value

TRUE, if sucessfull

Examples

## Not run: 
afedR_add_html_content(f_in = 'example.html', dir_out = tempdir(),
                       student_name = 'George', student_version = 1,
                       n_q = 10, class_name = 'example class', exercise_name = 'sample',
                       exam_links = NA)

## End(Not run)

msperlin/afedR documentation built on Sept. 11, 2022, 9:49 a.m.