datacamp (version 3.3.0)

upload_chapter: Create or update a chapter

Description

Create or update a chapter

Usage

upload_chapter(chapter_file, force = FALSE, open = TRUE, ask = TRUE)

Arguments

chapter_file

path to the Markdown file to be uploaded

force

boolean, FALSE by default, specifies whether exercises should be removed. If set, will prompt for confirmation.

open

boolean, TRUE by default, determines whether a browser window should open, showing the course creation web interface

ask

boolean, TRUE by default, determines whether you are asked for confirmation if you set force to TRUE.

Value

No return values.

Examples

Run this code
# NOT RUN {
# Upload without possibly deleting existing exercises
upload_chapter("chapter1.md")

# Completely sync online chapter with your local markdown file
upload_chapter("chapter1.md", force = TRUE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab