create_exercise: Generic Function For Creating New Exercise

View source: R/ex_create.R

create_exerciseR Documentation

Generic Function For Creating New Exercise

Description

This is a convenience function for collecting the input for calling the function rteachtools::create_exercise().

Usage

create_exercise(
  ps_ex_name,
  ps_course_name,
  pn_exercise_count,
  ps_author,
  pn_nr_problem,
  pd_creation_date = format(Sys.Date(), "%Y-%m-%d"),
  pb_edit = FALSE
)

Arguments

ps_ex_name

name of the exercise

ps_course_name

name of the course for which the exercise is created

pn_exercise_count

the number of the exercise in the course

ps_author

author of the exercise

pn_nr_problem

the number of problems in the exercise

pd_creation_date

date of creation of the exercise

pb_edit

should created file be directly edited

Examples

## Not run: 
create_exercise(ps_ex_name        = "gel_ex01",
                ps_course_name    = "Genetic Evaluation",
                pn_exercise_count = 1,
                ps_author         = "Peter von Rohr",
                pn_nr_problem     = 2)


## End(Not run)

charlotte-ngs/asmss2022 documentation built on June 7, 2022, 1:33 p.m.