upload_chapter: Create or update a chapter

Description Usage Arguments Value Examples

Description

Create or update a chapter

Usage

1
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

1
2
3
4
5
6
7
8
## 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)

## End(Not run)

Data-Camp/datacamp documentation built on May 6, 2019, 1:38 p.m.