make_lectures: Make Lecture Folders

Description Usage Arguments Examples

Description

Make boiler plate for lectures.

Make boiler plate for lectures.

Make boiler plate for lectures.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
make_lectures(n_lectures = 12, path = "sessions", other_dirs = NULL)

make_lesson(session_number, instructor_script_control_file,
  instructor_script_path = ".bin/instructor_scripts",
  teach_path = file.path(instructor_script_path,
  stringi::stri_pad_left(session_number, 2, "0")),
  student_session_path = "sessions")

make_instructor_scripts_dir(n_lectures = 12,
  path = ".bin/instructor_scripts")

Arguments

n_lectures

The number of lectures. Go higher.

path

The path to the sessions directory.

other_dirs

Other directories to add to the template.

session_number

The lecture session number.

instructor_script_control_file

The file R file with # mark up that is used to make student lesson scripts as well as the .(n) code chunks.

instructor_script_path

Path to where the instructor scripts should be stored.

teach_path

Path to where the teacher files are located for this lecture session.

student_session_path

A path to where student sessions are stored.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
make_lectures()
make_instructor_scripts_dir()
make_lesson(
    session_number = 1,
    instructor_script_control_file = ".bin/control_scripts/01_intro_to_r.R"
)

## End(Not run)

trinker/teach documentation built on May 26, 2019, 5:34 a.m.