Description Usage Arguments Examples
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
.
1 | new_lesson(lesson_name, course_name, open_lesson = TRUE)
|
lesson_name |
The name of the lesson. |
course_name |
The name of the course. |
open_lesson |
If |
1 2 3 4 5 6 7 8 9 10 11 12 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.