datacamp (version 3.3.0)

upload_course: Create or update a course

Description

Uploads the course.yml file to datacamp.com. Use this function to change the course title, description, etc. and to update the chapters' ordering.

Usage

upload_course(course_folder = ".", open = TRUE, force = FALSE,
  upload_chapters = FALSE)

Arguments

course_folder

path to folder containing the course yml file.

open

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

force

boolean, FALSE by default, that allows to remove chapters from the live course that are not in the course.yml

upload_chapters,

boolean, FALSE by default, that specifies whether to also upload the chapters

Details

If you're not yet logged in when calling this function, you'll be prompted to log in.

Examples

Run this code
# NOT RUN {
upload_course()
upload_course(upload_chapters = TRUE) # also upload chapters listed in course.yml
# }

Run the code above in your browser using DataCamp Workspace