Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

new_lesson

Create new lesson in the YAML format.


Description

Creates a new lesson and possibly a new course in your working directory. If the name you provide for course_name is not a directory in your working directory, then a new course directory will be created. However if you've already started a course with the name you provide for course_name and that course is in your working directory, then a new lesson will be created inside of that course with the name you provide for lesson_name.

Usage

new_lesson(lesson_name, course_name, open_lesson = TRUE)

Arguments

lesson_name

The name of the lesson.

course_name

The name of the course.

open_lesson

If TRUE the new lesson.yaml file will open for editing via file.edit. The default value is TRUE.

Examples

## Not run: 
# Make sure you have your working directory set to where you want to
# create the course.
setwd(file.path("~", "Developer", "swirl_courses"))

# Make a new course with a new lesson
new_lesson("How to use pnorm", "Normal Distribution Functions in R")

# Make a new lesson in an existing course
new_lesson("How to use qnorm", "Normal Distribution Functions in R")

## End(Not run)

swirlify

A Toolbox for Writing 'swirl' Courses

v0.5.3
MIT + file LICENSE
Authors
Sean Kross [aut, cre], Nick Carchedi [aut], Chih-Cheng Liang [ctb], Wush Wu [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.